Skip to content

Instantly share code, notes, and snippets.

@zachaysan
Created March 8, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachaysan/28cd7971bd5a1dfc0c50 to your computer and use it in GitHub Desktop.
Save zachaysan/28cd7971bd5a1dfc0c50 to your computer and use it in GitHub Desktop.
cities = ["Texas", "Amsterdam", "New York", "Toronto", "Phoenix", "Los Angeles"]
cities += ["San Francisco", "Miami", "Chicago", "Dallas", "Houston"]
while true
begin
system("./hma-vpn.sh #{cities.sample}) &")
sleep rand * 12
system('killall "hma-vpn.sh"')
rescue StandardError => e
puts "Error #{e}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment