Created
September 13, 2013 22:27
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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