Skip to content

Instantly share code, notes, and snippets.

Jonathon Horsman arctickiwi

Block or report user

Report or block arctickiwi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arctickiwi / connection_test.rb
Last active Feb 25, 2016
Long-running task which periodically checks the internet connection by pinging Google's DNS server and reporting outages
View connection_test.rb
require 'net/ping'
HOST = ''
start =
puts "#{start} Starting connection check. Pinging #{HOST}"
icmp =
@down = false
total = 0
You can’t perform that action at this time.