05
Jul
09

Bash alias: look at an Experts Exchange article without having to pay

Experts Exchange often comes up when I’m searching for how to fix stuff. It’s annoying, because this site constantly tries to get you to pay for stuff and hides the actual content away as best it can. You don’t actually have to pay, though, to see the content. So here’s a Bash or Zsh alias for neatly avoiding all that:

Code:
function experts() { curl -s -H 'User-Agent: Googlebot/2.1 (foo)' $1 > $2.html && firefox $2.html; }

Change the ‘firefox’ bit to whatever browser you use (I’m on 3.5, yo!). Usage is simple:

Code:
experts http://link.to.experts.exchange.article.com filetosave

Don’t worry about including the .html bit, either. The file is saved to your current directory, just so you know.

Advertisements

2 Responses to “Bash alias: look at an Experts Exchange article without having to pay”


  1. 14 July, 2009 at 9:13 pm

    turns out you can also just get to the solutions by scrolling past the links at the bottom of the page ….


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


July 2009
M T W T F S S
    Aug »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Stuff goes here

Hijack this blog

You want to use something from this blag? What the hell is wrong with you? Do you want to fail at life? If you reuse the crap I post here, people will say, "Wow, I never knew anybody could be so ignorant!" Then they will go and find a weapon to beat you with. That's right. There's your god-damned copyright notice. You really care about that shit? Fine. Take it, copy it, pretend it's your own work. Do whatever the hell you want with it, I don't care.

Blog Stats

  • 13,636 people hate me.

%d bloggers like this: