Skip to content

Instantly share code, notes, and snippets.

@zachaysan
Created March 8, 2015 19:43
Show Gist options
  • 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