Skip to content

carr/discipline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages