Created
October 10, 2008 08:03
-
-
Save brendano/16016 to your computer and use it in GitHub Desktop.
network connectivity troubleshooting...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load '~/.irbrc' # dotfiles.org/~brendano/.irbrc | |
require 'hpricot' | |
sites=[] | |
for url in [ | |
"http://www.alexa.com/site/ds/top_sites?ts_mode=lang〈=en"] | |
h = Hpricot open(url).read | |
sites += (h/'h3'/'a').map{|x| x['href']} | |
end | |
puts sites.join("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED www.4shared.com | |
FAILED www.888.com | |
FAILED www.about.com | |
FAILED www.adultadworld.com | |
FAILED www.aim.com | |
FAILED www.amazon.com | |
FAILED www.aol.com | |
FAILED www.apple.com | |
FAILED www.cnn.com | |
FAILED www.ebay.co.uk | |
FAILED www.ebay.com | |
FAILED www.hp.com | |
FAILED www.icq.com | |
FAILED www.imagevenue.com | |
FAILED www.imdb.com | |
FAILED www.microsoft.com | |
FAILED www.msn.com | |
FAILED www.multiply.com | |
FAILED www.nytimes.com | |
FAILED www.perfspot.com | |
FAILED www.realitykings.com | |
FAILED www.torrentz.com | |
FAILED www.weather.com | |
WORKED www.adobe.com | |
WORKED www.adultfriendfinder.com | |
WORKED www.badongo.com | |
WORKED www.bbc.co.uk | |
WORKED www.bebo.com | |
WORKED www.blogger.com | |
WORKED www.brazzers.com | |
WORKED www.clicksor.com | |
WORKED www.cnet.com | |
WORKED www.comcast.net | |
WORKED www.craigslist.org | |
WORKED www.dailymotion.com | |
WORKED www.depositfiles.com | |
WORKED www.deviantart.com | |
WORKED www.digg.com | |
WORKED www.doubleclick.com | |
WORKED www.download.com | |
WORKED www.easy-share.com | |
WORKED www.espn.go.com | |
WORKED www.facebook.com | |
WORKED www.fastclick.com | |
WORKED www.filefactory.com | |
WORKED www.flickr.com | |
WORKED www.fotolog.net | |
WORKED www.friendster.com | |
WORKED www.gamespot.com | |
WORKED www.geocities.com | |
WORKED www.gmx.net | |
WORKED www.go.com | |
WORKED www.google.ca | |
WORKED www.google.co.id | |
WORKED www.google.co.in | |
WORKED www.google.co.th | |
WORKED www.google.co.uk | |
WORKED www.google.co.za | |
WORKED www.google.com | |
WORKED www.google.com.au | |
WORKED www.hi5.com | |
WORKED www.ign.com | |
WORKED www.imageshack.us | |
WORKED www.imeem.com | |
WORKED www.information.com | |
WORKED www.isohunt.com | |
WORKED www.live.com | |
WORKED www.livejasmin.com | |
WORKED www.mediafire.com | |
WORKED www.megarotic.com | |
WORKED www.megaupload.com | |
WORKED www.metacafe.com | |
WORKED www.metroflog.com | |
WORKED www.mininova.org | |
WORKED www.mozilla.com | |
WORKED www.myspace.com | |
WORKED www.nba.com | |
WORKED www.netlog.com | |
WORKED www.orkut.com | |
WORKED www.partypoker.com | |
WORKED www.photobucket.com | |
WORKED www.pornhub.com | |
WORKED www.rapidshare.com | |
WORKED www.rediff.com | |
WORKED www.redtube.com | |
WORKED www.reference.com | |
WORKED www.soso.com | |
WORKED www.sourceforge.net | |
WORKED www.studiverzeichnis.com | |
WORKED www.thepiratebay.org | |
WORKED www.tinypic.com | |
WORKED www.usercash.com | |
WORKED www.veoh.com | |
WORKED www.vnexpress.net | |
WORKED www.wordpress.com | |
WORKED www.yahoo.com | |
WORKED www.youporn.com | |
WORKED www.yourfilehost.com | |
WORKED www.youtube.com | |
WORKED www.zshare.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED www.888.com | |
FAILED www.about.com | |
FAILED www.adultadworld.com | |
FAILED www.aim.com | |
FAILED www.amazon.com | |
FAILED www.aol.com | |
FAILED www.apple.com | |
FAILED www.cnn.com | |
FAILED www.ebay.co.uk | |
FAILED www.ebay.com | |
FAILED www.hp.com | |
FAILED www.icq.com | |
FAILED www.imagevenue.com | |
FAILED www.imdb.com | |
FAILED www.microsoft.com | |
FAILED www.msn.com | |
FAILED www.multiply.com | |
FAILED www.perfspot.com | |
FAILED www.realitykings.com | |
FAILED www.torrentz.com | |
WORKED www.4shared.com | |
WORKED www.adobe.com | |
WORKED www.adultfriendfinder.com | |
WORKED www.badongo.com | |
WORKED www.bbc.co.uk | |
WORKED www.bebo.com | |
WORKED www.blogger.com | |
WORKED www.brazzers.com | |
WORKED www.clicksor.com | |
WORKED www.cnet.com | |
WORKED www.comcast.net | |
WORKED www.craigslist.org | |
WORKED www.dailymotion.com | |
WORKED www.depositfiles.com | |
WORKED www.deviantart.com | |
WORKED www.digg.com | |
WORKED www.doubleclick.com | |
WORKED www.download.com | |
WORKED www.easy-share.com | |
WORKED www.espn.go.com | |
WORKED www.facebook.com | |
WORKED www.fastclick.com | |
WORKED www.filefactory.com | |
WORKED www.flickr.com | |
WORKED www.fotolog.net | |
WORKED www.friendster.com | |
WORKED www.gamespot.com | |
WORKED www.geocities.com | |
WORKED www.gmx.net | |
WORKED www.go.com | |
WORKED www.google.ca | |
WORKED www.google.co.id | |
WORKED www.google.co.in | |
WORKED www.google.co.th | |
WORKED www.google.co.uk | |
WORKED www.google.co.za | |
WORKED www.google.com | |
WORKED www.google.com.au | |
WORKED www.hi5.com | |
WORKED www.ign.com | |
WORKED www.imageshack.us | |
WORKED www.imeem.com | |
WORKED www.information.com | |
WORKED www.isohunt.com | |
WORKED www.live.com | |
WORKED www.livejasmin.com | |
WORKED www.mediafire.com | |
WORKED www.megarotic.com | |
WORKED www.megaupload.com | |
WORKED www.metacafe.com | |
WORKED www.metroflog.com | |
WORKED www.mininova.org | |
WORKED www.mozilla.com | |
WORKED www.myspace.com | |
WORKED www.nba.com | |
WORKED www.netlog.com | |
WORKED www.nytimes.com | |
WORKED www.orkut.com | |
WORKED www.partypoker.com | |
WORKED www.photobucket.com | |
WORKED www.pornhub.com | |
WORKED www.rapidshare.com | |
WORKED www.rediff.com | |
WORKED www.redtube.com | |
WORKED www.reference.com | |
WORKED www.soso.com | |
WORKED www.sourceforge.net | |
WORKED www.studiverzeichnis.com | |
WORKED www.thepiratebay.org | |
WORKED www.tinypic.com | |
WORKED www.usercash.com | |
WORKED www.veoh.com | |
WORKED www.vnexpress.net | |
WORKED www.weather.com | |
WORKED www.wordpress.com | |
WORKED www.yahoo.com | |
WORKED www.youporn.com | |
WORKED www.yourfilehost.com | |
WORKED www.youtube.com | |
WORKED www.zshare.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED www.888.com | |
FAILED www.about.com | |
FAILED www.adultadworld.com | |
FAILED www.aim.com | |
FAILED www.amazon.com | |
FAILED www.aol.com | |
FAILED www.cnn.com | |
FAILED www.ebay.co.uk | |
FAILED www.ebay.com | |
FAILED www.hp.com | |
FAILED www.icq.com | |
FAILED www.imagevenue.com | |
FAILED www.imdb.com | |
FAILED www.microsoft.com | |
FAILED www.msn.com | |
FAILED www.multiply.com | |
FAILED www.perfspot.com | |
FAILED www.realitykings.com | |
FAILED www.torrentz.com | |
FAILED www.weather.com | |
WORKED www.4shared.com | |
WORKED www.adobe.com | |
WORKED www.adultfriendfinder.com | |
WORKED www.apple.com | |
WORKED www.badongo.com | |
WORKED www.bbc.co.uk | |
WORKED www.bebo.com | |
WORKED www.blogger.com | |
WORKED www.brazzers.com | |
WORKED www.clicksor.com | |
WORKED www.cnet.com | |
WORKED www.comcast.net | |
WORKED www.craigslist.org | |
WORKED www.dailymotion.com | |
WORKED www.depositfiles.com | |
WORKED www.deviantart.com | |
WORKED www.digg.com | |
WORKED www.doubleclick.com | |
WORKED www.download.com | |
WORKED www.easy-share.com | |
WORKED www.espn.go.com | |
WORKED www.facebook.com | |
WORKED www.fastclick.com | |
WORKED www.filefactory.com | |
WORKED www.flickr.com | |
WORKED www.fotolog.net | |
WORKED www.friendster.com | |
WORKED www.gamespot.com | |
WORKED www.geocities.com | |
WORKED www.gmx.net | |
WORKED www.go.com | |
WORKED www.google.ca | |
WORKED www.google.co.id | |
WORKED www.google.co.in | |
WORKED www.google.co.th | |
WORKED www.google.co.uk | |
WORKED www.google.co.za | |
WORKED www.google.com | |
WORKED www.google.com.au | |
WORKED www.hi5.com | |
WORKED www.ign.com | |
WORKED www.imageshack.us | |
WORKED www.imeem.com | |
WORKED www.information.com | |
WORKED www.isohunt.com | |
WORKED www.live.com | |
WORKED www.livejasmin.com | |
WORKED www.mediafire.com | |
WORKED www.megarotic.com | |
WORKED www.megaupload.com | |
WORKED www.metacafe.com | |
WORKED www.metroflog.com | |
WORKED www.mininova.org | |
WORKED www.mozilla.com | |
WORKED www.myspace.com | |
WORKED www.nba.com | |
WORKED www.netlog.com | |
WORKED www.nytimes.com | |
WORKED www.orkut.com | |
WORKED www.partypoker.com | |
WORKED www.photobucket.com | |
WORKED www.pornhub.com | |
WORKED www.rapidshare.com | |
WORKED www.rediff.com | |
WORKED www.redtube.com | |
WORKED www.reference.com | |
WORKED www.soso.com | |
WORKED www.sourceforge.net | |
WORKED www.studiverzeichnis.com | |
WORKED www.thepiratebay.org | |
WORKED www.tinypic.com | |
WORKED www.usercash.com | |
WORKED www.veoh.com | |
WORKED www.vnexpress.net | |
WORKED www.wordpress.com | |
WORKED www.yahoo.com | |
WORKED www.youporn.com | |
WORKED www.yourfilehost.com | |
WORKED www.youtube.com | |
WORKED www.zshare.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby ping.rb |egrep 'FAIL|WORK' > log | |
require 'thread' | |
results = [] | |
threads = [] | |
for u in File.read("top100").split | |
domain = u.sub(%r[http.*?://],"") | |
threads << Thread.new do | |
d2=domain | |
worked = system "ping -t 3 #{d2}" | |
results << [worked ? 'WORKED' : 'FAILED', d2] | |
end | |
end | |
threads.each{|t| t.join} | |
puts results.sort.map{|x| x.join("\t")}.join("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.yahoo.com | |
http://www.google.com | |
http://www.youtube.com | |
http://www.live.com | |
http://www.msn.com | |
http://www.myspace.com | |
http://www.facebook.com | |
http://www.blogger.com | |
http://www.orkut.com | |
http://www.rapidshare.com | |
http://www.microsoft.com | |
http://www.google.co.in | |
http://www.ebay.com | |
http://www.hi5.com | |
http://www.aol.com | |
http://www.google.co.uk | |
http://www.photobucket.com | |
http://www.amazon.com | |
http://www.imdb.com | |
http://www.imageshack.us | |
http://www.youporn.com | |
http://www.wordpress.com | |
http://www.flickr.com | |
http://www.friendster.com | |
http://www.adultfriendfinder.com | |
http://www.go.com | |
http://www.bbc.co.uk | |
http://www.craigslist.org | |
http://www.dailymotion.com | |
http://www.redtube.com | |
http://www.cnn.com | |
http://www.mininova.org | |
http://www.google.ca | |
http://www.fotolog.net | |
http://www.imagevenue.com | |
http://www.espn.go.com | |
http://www.rediff.com | |
http://www.adobe.com | |
http://www.apple.com | |
http://www.yourfilehost.com | |
http://www.veoh.com | |
http://www.perfspot.com | |
http://www.deviantart.com | |
http://www.about.com | |
http://www.megaupload.com | |
http://www.metroflog.com | |
http://www.fastclick.com | |
http://www.clicksor.com | |
http://www.geocities.com | |
http://www.google.co.id | |
http://www.ebay.co.uk | |
http://www.mediafire.com | |
http://www.partypoker.com | |
http://www.gamespot.com | |
http://www.download.com | |
http://www.nytimes.com | |
http://www.google.com.au | |
http://www.weather.com | |
http://www.thepiratebay.org | |
http://www.ign.com | |
http://www.bebo.com | |
http://www.depositfiles.com | |
http://www.adultadworld.com | |
http://www.nba.com | |
http://www.zshare.net | |
http://www.digg.com | |
http://www.4shared.com | |
http://www.aim.com | |
http://www.netlog.com | |
http://www.studiverzeichnis.com | |
http://www.isohunt.com | |
http://www.comcast.net | |
http://www.doubleclick.com | |
http://www.sourceforge.net | |
http://www.usercash.com | |
http://www.badongo.com | |
http://www.cnet.com | |
http://www.google.co.th | |
http://www.easy-share.com | |
http://www.pornhub.com | |
http://www.megarotic.com | |
http://www.imeem.com | |
http://www.gmx.net | |
http://www.metacafe.com | |
http://www.reference.com | |
http://www.information.com | |
http://www.multiply.com | |
http://www.888.com | |
http://www.livejasmin.com | |
http://www.realitykings.com | |
http://www.torrentz.com | |
http://www.google.co.za | |
http://www.soso.com | |
http://www.mozilla.com | |
http://www.filefactory.com | |
http://www.icq.com | |
http://www.brazzers.com | |
http://www.tinypic.com | |
http://www.vnexpress.net | |
http://www.hp.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment