Skip to content

Instantly share code, notes, and snippets.

@mtyeh411
Created September 5, 2012 12:29
Show Gist options
  • Save mtyeh411/3635892 to your computer and use it in GitHub Desktop.
Save mtyeh411/3635892 to your computer and use it in GitHub Desktop.
scheduled pinger
require 'rufus/scheduler'
scheduler = Rufus::Scheduler.start_new
scheduler.every '10m' do
require "net/http"
require "uri"
url = 'http://codeglot.com'
Net::HTTP.get_response(URI.parse(url))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment