Skip to content

Instantly share code, notes, and snippets.

@bds
Created September 13, 2013 22:27
Show Gist options
  • Save bds/6556881 to your computer and use it in GitHub Desktop.
Save bds/6556881 to your computer and use it in GitHub Desktop.
Get google.com every 60 seconds for 100 minutes. Helped me keep network connection "alive". Sure there is a better way to do this (curl and bash would be simpler, including only requesting HEAD)
while max <= 100 do; puts Net::HTTP.get('www.google.com', '/'); max +=1; sleep 60; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment