-
-
Save j3lte/97b4e6784d2463e2b073e3a61b74baf4 to your computer and use it in GitHub Desktop.
Revisions
-
Dreyer renamed this gist
Jan 20, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Dreyer revised this gist
Jan 5, 2017 . 1 changed file with 0 additions and 20 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,20 +0,0 @@ -
Dreyer renamed this gist
Jan 5, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Dreyer revised this gist
Jan 5, 2017 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ # # Automatically reconnect when disconnected from the VPN. # # You don't need this if you're using the NordVPN application. # This is a utility for using native VPN connection settings on MacOS. # on idle tell application "System Events" tell current location of network preferences set myConnection to the service "WorkVPN" if myConnection is not null then if current configuration of myConnection is not connected then connect myConnection end if end if end tell return 120 end tell end idle -
Dreyer revised this gist
Jan 5, 2017 . No changes.There are no files selected for viewing
-
Dreyer revised this gist
Jan 5, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,5 +5,5 @@ JSON=$(curl -s $URL) printf "\n" #echo $JSON | python -m json.tool echo $JSON | python -c 'import sys, json; data = json.load(sys.stdin); print "IP: %s (%s)\nStatus: %s" % (data["ip"], data["isp"], "\033[32mProtected" if data["status"] is True else "\033[31mUnprotected");' printf "\n" -
Dreyer created this gist
Jan 5, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash URL='https://nordvpn.com/wp-admin/admin-ajax.php?action=get_user_info_data' JSON=$(curl -s $URL) printf "\n" #echo $JSON | python -m json.tool echo $JSON | curl -s $URL | python -c 'import sys, json; data = json.load(sys.stdin); print "IP: %s (%s)\nStatus: %s" % (data["ip"], data["isp"], "\033[32mProtected" if data["status"] is True else "\033[31mUnprotected");' printf "\n"