Hacker News new | ask | show | jobs
by datasink 5805 days ago
I wrote a small PHP command-line tool for turning on/off these host file entries. It's fairly simple, but I've found it to be extremely useful in killing off stray checks of favorite websites, which inevitably end in larger blocks of misspent time. http://github.com/killsaw/Timeguard
1 comments

Make it a command line utility only for turning those entries on, but make it as hard as it could be to remove them again.
I considered this while writing it, but figured there's a fine line one must walk with a utility like this. If it's too annoying to disable, you won't use it.

Typically once I flip it on, I forget about it, until I actually try to check a site that's been blocked. I find that being unable to load a site or loading a local webserver hosted file injects just enough time to realize I should be doing something else.

Previously I wasn't in the "trick yourself" camp, but having used this for a while, I definitely am. Used in conjunction with the Pomodoro Technique, it's a really solid way to keep oneself on track.