BACKTRACE

(condense)

Back to Posts List

GET

A Ruby script to stay productive

Avoiding temptations, i was doing it wrong.

Lately i found myself wasting too much time on stuff that weren’t so “work” related, like tweeting, facebook’ing and all the other stuff the interwebs flashes in your face in order to distract you from making money.

A while ago when i moved my development stack to use a local Passenger/Apache installation, i decided to use the ghost gem to add custom hosts for my projects, just to make it easier to reference. (ex: for a project that was on eladisawesome.com, i used th ghost gem to point eladisawesome.dev to my local dev stack).

Then, it hit me.

“Why don’t you write a tiny script that will block all that interwebs blasphemy and keep you productive?”

There it is, enjoy. (forks and enhancements are welcome, of course).

usage is pretty simple (you might be required to enter your root password, after all, we are adding hosts here):

Well, i know it’s kind of stupid, but every time i hit a local page when i try to hit those pages, i come back to my senses and go back to work… if you can’t even do that, you should find a better solution.

POST

blog comments powered by Disqus

I Don't have cookies.

ELAD ENV

Variable Value
LINKEDIN
TWITTER
FACEBOOK
GITHUB
WWR
IRC
{ 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#mootools' ]}
SKYPE
eladmeidar

You're seeing this error because I think it is funny.