Discipline is a tool to help you stop procrastinating by blocking distracting online content like Facebook, Twitter and other websites.
To install discipline, run this command:
gem install discipline
To block unwanted online content, run this command in your terminal:
sudo discipline on
To unblock unwanted online content, run the inverse command in your terminal:
sudo discipline off
The "sudo" mode of operation is required because discipline works by modifying your /etc/hosts/ file, which requires root access.
Create a ~/.discipline_config.yml file with the following configuration
---
- youtube.com
- www.youtube.com
- techcrunch.com
- facebook.com
- www.facebook.com
- www.twitter.com
- twitter.com
- api.twitter.com
- linkedin.com
- www.linkedin.com
I've tested this only on the OSX operating system, so I have no idea how it behaves on other platforms. It should work on Linux, for Windows I wouldn't get my hopes up.
Copyright © 2012 Tomislav Car, Infinum