Skip to content

Instantly share code, notes, and snippets.

@akhal3d96
Last active August 22, 2016 13:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhal3d96/714d5a9174b6976b38b7a77a42451167 to your computer and use it in GitHub Desktop.
Save akhal3d96/714d5a9174b6976b38b7a77a42451167 to your computer and use it in GitHub Desktop.
Quickly establish a connection with a free VPN server in USA in order to access Spotify's services
curl -o vpn.zip -s "https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-US1.zip" && unzip vpn.zip -d ~/vpn_files && echo "vpnbook" > ~/.auth && curl -s "https://www.vpnbook.com/" | grep Password | tr -d '\t\n\r\f' | grep -Eo 'Password: [a-zA-Z0-9]*' | uniq | sed 's/Password: //' >> ~/.auth && sudo openvpn --config ~/vpn_files/vpnbook-us1-tcp443.ovpn --auth-user-pass ~/.auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment