get-shit-done is an easy to use command line program that blocks websites known to distract us from our work.
After cloning this repository, put it in your $PATH and ensure it is executable.
Execute it as root because it modifies your hosts file and restarts your network daemon.
sudo get-shit-done work
sudo get-shit-done play
Add or remove elements of this array for sites to block or unblock.
Update this variable with the path to your network daemon along with any parameters needed to restart it.
Update this variable to point to the location of your hosts file. Make sure it is an absolute path.
You can add additional websites without altering the script's source. First create an empty file in the same directory as the get-shit-done script in the following name,
.get-shit-done.ini
now add the following lines to that file and save it.
[site_list]
urls=xkcd.com,wired.com
You can add websites to the list in the way shown in the example.