Created
June 14, 2019 23:46
-
-
Save havron/1f2c074c5b221e9a1fb2e58f06d27312 to your computer and use it in GitHub Desktop.
Check if you're in the Cornell campus network, and if not spin up a VPN connection
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
curl -s -o /dev/null -w "%{http_code}" http://cuonly.cs.cornell.edu/ | grep -q 200 || sudo vpnc-connect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment