Project

discipline

0.0
No commit activity in last 3 years
No release in over 3 years
Discipline is a tool to help you stop procrastinating by blocking distracting online content like Facebook, Twitter and other websites.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Discipline

Discipline is a tool to help you stop procrastinating by blocking distracting online content like Facebook, Twitter and other websites.

Install

To install discipline, run this command:

gem install discipline

Usage

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.

Configuration

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

Supported platforms

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.

Author

Copyright © 2012 Tomislav Car, Infinum