Skip to content

Instantly share code, notes, and snippets.

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 jeffkreeftmeijer/364536 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/364536 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'httparty'
loop do
response = HTTParty.get 'http://store.apple.com/'
if response.body.include? "We'll be back soon"
puts '.'
else
`say OMG! It\\'s back!`
end
sleep 10
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment