News for hackers. Stuff that matters.
Re:Ask HN: Help, I'm stuck on HN by noir_lord on Monday December 16, 2013 @08:24AM (#6914531)
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.

Re:Ask HN: Help, I'm stuck on HN by alex_marchant on Monday December 16, 2013 @09:57AM (#6915052)
I 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.
Re:Ask HN: Help, I'm stuck on HN by mercer on Thursday December 19, 2013 @02:22PM (#6937108)
Cool. Might use that. On the other hand, making it easier to toggle might not be the best idea...
Re:Ask HN: Help, I'm stuck on HN by alex_marchant on Thursday December 19, 2013 @02:33PM (#6937209)
Personally, 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.
Re:Ask HN: Help, I'm stuck on HN by mcb3k on Monday December 16, 2013 @02:41PM (#6917277)
I 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

Re:Ask HN: Help, I'm stuck on HN by randallma on Monday December 16, 2013 @05:00PM (#6918137)
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.