Skip to content

Instantly share code, notes, and snippets.

@baysideengineer
Created June 19, 2023 13:49
Show Gist options
  • Save baysideengineer/97743f78dc118cf1dfa9985835db00ed to your computer and use it in GitHub Desktop.
Save baysideengineer/97743f78dc118cf1dfa9985835db00ed to your computer and use it in GitHub Desktop.
Connect to a random ExpressVPN server.
#!/bin/bash
expressvpn disconnect
expressvpn refresh
VPN=$(expressvpn list all | awk '{print $1}' | tail -n+3 | shuf -n1)
expressvpn connect "$VPN"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment