Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on November 28, 2014 at 08:30 PM

Section 1 (Text)

#!/usr/bin/ruby                                                                                     

#require 'open-uri'                                                                                 
require 'net/http'

File.readlines("/home/nick/avg/tunnels.txt").each do |line|
  open "https://admin:[email protected]/nph-vpn.cgi?name=#{line.chomp}&cmd=status", &:read
end

   if tunnel.include? "active"
     puts "The tunnel is ACTIVE"
elsif
     tunnel.include? "down"
     puts "The tunnels is DOWN"
elsif
     tunnel.include? "unknown"
     puts "The Status of the tunnel is currently UNKNOWN"
else
     puts "The Tunnel has reported the status of #{tunnel}"
end