Last active
August 29, 2015 14:26
-
-
Save bunchc/ffef133cd28ab5d19d8a to your computer and use it in GitHub Desktop.
Hustle till that bank account looks like a phone number.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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