Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Created December 10, 2017 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraaroncruz/e44dca5828e3c0acb729c15bcacb5a67 to your computer and use it in GitHub Desktop.
Save mraaroncruz/e44dca5828e3c0acb729c15bcacb5a67 to your computer and use it in GitHub Desktop.
george is down
require "typhoeus"
loop do
puts "In Loop"
res = Typhoeus.get("https://george.sparkasse.at/")
if res.success?
unless res.body =~ /George arbeitet an sich/
`say "George is back online!"`
return
end
end
sleep(60)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment