Where developers come to connect, share, build and be inspired.


Ultimate Webdev Time Saver


With my wonder script you have more focus on your customer projects under localhost. So you get things done like a zen master. Believe Me.


echo " www.facebook.com" >> /etc/hosts
echo " www.twitter.com" >> /etc/hosts
echo " www.youtube.com" >> /etc/hosts
echo " www.pinterest.com" >> /etc/hosts
echo " www.stumbleupon.com" >> /etc/hosts
echo " www.reddit.com" >> /etc/hosts
echo " www.slashdot.org" >> /etc/hosts
echo " news.ycombinator.com" >> /etc/hosts
echo " www.4chan.org" >> /etc/hosts
echo " www.9gag.com" >> /etc/hosts


  • User-avatar

    Hosting all those sites locally must slow your laptop down!

  • 393640f88c24599cde6d104c3d0b913c

    With my wonder script you no longer need this sites.

  • 578855_3794745059411_1045494353_n

    I coded a bash script ( https://gist.github.com/748896 ) with the same idea and man, you really save time!

  • B50005fc2bfb82715bd0ab1e03f8db45

    All those poor souls integrating social networking APIs.

  • G_profile

    @naholyr I think including a call to flush the cache may help it work with Chrome. (Not FF yet.) I'm still doing a bit of debugging on the version I built for practice that has a cache flush, but you're welcome to give it a shot.

    You can also turn it on/off.


  • G_profile

    @afgomez I recreated a version of yours to practice my bash scripting. Thanks for putting it out there!

  • 578855_3794745059411_1045494353_n

    @sjhcockrell neat! I will shamelessly copy the good parts tomorrow and blend them with mine :)

  • User-avatar

    Hi netzzwerg, i cant catch this trick totaly, would you mind just explain how to doit simply?

    Thanks in advance ~!

  • 396445b6e14727dcb6b3d6a66d52b567

    Does not work if you use chrome and already visited those websites : it keeps its own DNS cache and won't care about your changes :(

    I tried to make a pomodoro script based on this idea some time ago but had to give up.

  • A2f9d9f971b1ab40760413c96d43261e

    You forgot imgur. :p

  • Ec61d4d2928411e280a722000aaa08b2_7

    cool trick, but isn't the concept of discipline central to the idea of being a zen master?

Add a comment