Skip to content

Instantly share code, notes, and snippets.

@bunchc
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunchc/ffef133cd28ab5d19d8a to your computer and use it in GitHub Desktop.
Save bunchc/ffef133cd28ab5d19d8a to your computer and use it in GitHub Desktop.
Hustle till that bank account looks like a phone number.
0 9 * * * ~/scripts/hustle.sh
#hustle.sh
#! /bin/bash
# unblock the things
sudo sed -i '/127.0.0.1 facebook.com/d' /etc/hosts
sudo sed -i '/127.0.0.1 slack.com/d' /etc/hosts
# he said 10 minutes
sleep 600;
# block the things
sudo cat >> /etc/hosts <<EOF
127.0.0.1 facebook.com
127.0.0.1 slack.com
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment