Can't stay off twitter long enough to get stuff done? When you get bored of reddit do you go to reddit? Timeout might help. Sure, you could try using willpower, or manually block yourself using a host file, but both of those are annoying.
timeout makes blocking unproductive websites easy. It uses your hostfile to make them inaccessible but provides an easy way to unblock them when you want to.
$ brew update
$ brew install philwade/tools/timeout
To get started you need to add some sites to block. We specify a name and domains to block:
$ sudo timeout add twitter twitter.com www.twitter.com
Added site twitter with urls twitter.com, www.twitter.com to blocking
$ sudo timeout add reddit reddit.com www.reddit.com
Added site reddit with urls reddit.com, www.reddit.com to blocking
$ sudo timeout in
Unblocked all sites
$ sudo timeout
Blocked all sites
$ sudo timeout in twitter
Unblocked sites: twitter
$ sudo timeout out twitter
Blocked sites: twitter
$ sudo timeout in twitter reddit
Blocked sites: twitter, reddit
$ timeout -hor
$ timeout help
timeout is open source software. If you find a bug or want to request a feature head over to github and open an issue, or just read the code if you like.
For more about me, contact info and other projects, head over to philwade.org