Created
August 9, 2010 19:02
-
-
Save iamwilhelm/515921 to your computer and use it in GitHub Desktop.
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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost | |
127.0.0.1 www.onemorelevel.com | |
127.0.0.1 onemorelevel.com | |
#127.0.0.1 www.hulu.com | |
#127.0.0.1 news.ycombinator.com | |
#127.0.0.1 www.facebook.com | |
#127.0.0.1 www.youtube.com |
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
#!/bin/sh | |
# starts blocking all sites so I can start working | |
bash -c "awk '{sub(/#127/, "127")};{print}' /etc/hosts > /etc/hosts.new; mv /etc/hosts.new /etc/hosts;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment