Last active
August 29, 2015 14:00
-
-
Save tsnow/11303574 to your computer and use it in GitHub Desktop.
Connecting to the gophercon wifi
This file contains hidden or 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/bash | |
for i in {1..100}; do | |
curl www.google.com 2>/dev/null 1>/dev/null && break || | |
sudo ifconfig en0 down && | |
sleep 1 && | |
sudo ifconfig en0 up && | |
sleep 4; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment