5 ms·
I put #127.0.0.1 www.reddit.com reddit.com i.reddit.com slashdot.org www.slashdot.org www.theguardian.com theguardian.com #127.0.0.1 www.face
by noir_lord 13y ago
I put
#127.0.0.1 www.reddit.com reddit.com i.reddit.com slashdot.org www.slashdot.org www.theguardian.com theguardian.com
#127.0.0.1 www.facebook.com facebook.com
#127.0.0.1 news.ycombinator.com
In /etc/hosts when I'm supposed to be working that way when I hit any of those it bounces me back to my current project and I think "oh yeah, supposed to be working".
Crude but effective.
- alex_marchant 13y agoI whipped up a little ruby app to be able to do this and toggle it on and off (osx only) https://github.com/alexmarchant/stuffed https://github.com/alexmarchant/stuffed.
- mercer 13y agoCool. Might use that. On the other hand, making it easier to toggle might not be the best idea...
- alex_marchant 13y agoPersonally, i find the simple reminder that it's work time does the trick. I'd be very interested to see if it's the same for you.
- mcb3k 13y agoI wrote a BASH script[1] that would swap a file with similar restrictions. I'm not sure I ever got the kinks all sorted, but it was definitely a thing that I did. [1] https://gist.github.com/mcb3k/1326729 https://gist.github.com/mcb3k/1326729
- randallma 13y agohttps://github.com/jcromartie/gsd.sh https://github.com/jcromartie/gsd.sh I added a pull request to add in linux support, so this should work on both osx and linux platforms now.