Created
August 4, 2016 04:23
-
-
Save RubenVerborgh/a76a828982fdca87061a614ddd25c338 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
$1 $2 || echo -e "$2\terror" |
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://abc.net.au/ success | |
http://about.com/ fail Connection closed | |
http://academy.com/ fail Connection closed | |
http://aerlingus.com/ fail Operation canceled | |
http://aiononline.com/ fail Operation canceled | |
http://airnewzealand.co.nz/ success | |
http://ajronline.org/ error | |
http://alarabiya.net/ success | |
http://alsa.org/ fail Operation canceled | |
http://amtrak.com/ success | |
http://annualreviews.org/ success | |
http://apastyle.org/ fail Operation canceled | |
http://arborday.org/ fail Operation canceled | |
http://avert.org/ fail Operation canceled | |
http://aweber.com/ fail Operation canceled | |
http://bankofscotland.co.uk/ fail Operation canceled | |
http://basspro.com/ success | |
http://bbc.co.uk/ success | |
http://bbc.com/ success | |
http://beallsflorida.com/ success | |
http://bestbuy.ca/ success | |
http://bethsoft.com/ fail Operation canceled | |
http://bitauto.com/ fail Operation canceled | |
http://bizjournals.com/ success | |
http://canadiantire.ca/ success | |
http://classicfm.com/ success | |
http://crash.net/ error | |
http://crash.net/ success | |
http://diabetes.org/ fail Operation canceled | |
http://earthclinic.com/ error | |
http://evernote.com/ fail Operation canceled | |
http://freeonlinegames.com/ success | |
http://globes.co.il/ success | |
http://goal.com/ success | |
http://healthfusion.com/ fail SSL handshake failed | |
http://hyatt.com/ success | |
http://icims.com/ fail Operation canceled | |
http://icloud.com/ fail Operation canceled | |
http://israelpost.co.il/ success | |
http://jetblue.com/ success | |
http://kmov.com/ success | |
http://lineage2.com/ fail Operation canceled | |
http://liverpoolfc.com/ fail Operation canceled | |
http://lotro.com/ fail Operation canceled | |
http://lung.org/ fail Operation canceled | |
http://megabus.com/ success | |
http://metronews.ca/ fail Operation canceled | |
http://nametests.com/ fail Operation canceled | |
http://nasioc.com/ success | |
http://nlm.nih.gov/ fail SSL handshake failed | |
http://nvidia.com/ fail Operation canceled | |
http://oclc.org/ fail Operation canceled | |
http://offgamers.com/ success | |
http://proxibid.com/ success | |
http://pubs.acs.org/ error | |
http://qsl.net/ fail SSL handshake failed | |
http://racingpost.com/ success | |
http://rockthevote.com/ fail Operation canceled | |
http://rstudio.com/ fail Operation canceled | |
http://sagepub.com/ fail SSL handshake failed | |
http://schoolofdragons.com/ success | |
http://sjtu.edu.cn/ fail SSL handshake failed | |
http://slashdot.org/ success | |
http://soccerway.com/ success | |
http://southwest.com/ success | |
http://subaru.com/ fail Operation canceled | |
http://suncountry.com/ fail Connection closed | |
http://sweepsadvantage.com/ fail Operation canceled | |
http://tdameritrade.com/ success | |
http://trucktrend.com/ fail Operation canceled | |
http://ualberta.ca/ fail SSL handshake failed | |
http://us.hsbc.com/ fail Operation canceled | |
http://verstappen.nl/ success | |
http://whatreallyhappened.com/ fail Operation canceled | |
http://worldpay.com/ success | |
http://yourhoustonnews.com/ success | |
http://zoo.sandiegozoo.org/ fail Operation canceled | |
https://docs.google.com/ fail Operation canceled | |
https://www.kaiserpermanente.org/ success | |
https://www.wmo.int/ fail Operation canceled |
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://abc.net.au/ success | |
http://about.com/ fail Connection closed | |
http://academy.com/ fail Connection closed | |
http://aerlingus.com/ fail Operation canceled | |
http://aiononline.com/ fail Operation canceled | |
http://airnewzealand.co.nz/ success | |
http://ajronline.org/ error | |
http://alarabiya.net/ success | |
http://alsa.org/ success | |
http://amtrak.com/ success | |
http://annualreviews.org/ success | |
http://apastyle.org/ fail Operation canceled | |
http://arborday.org/ fail Operation canceled | |
http://avert.org/ success | |
http://aweber.com/ success | |
http://bankofscotland.co.uk/ success | |
http://basspro.com/ success | |
http://bbc.co.uk/ success | |
http://bbc.com/ success | |
http://beallsflorida.com/ success | |
http://bestbuy.ca/ success | |
http://bethsoft.com/ success | |
http://bitauto.com/ fail Operation canceled | |
http://bizjournals.com/ success | |
http://canadiantire.ca/ success | |
http://classicfm.com/ success | |
http://crash.net/ error | |
http://diabetes.org/ success | |
http://earthclinic.com/ error | |
http://evernote.com/ fail Operation canceled | |
http://freeonlinegames.com/ success | |
http://globes.co.il/ success | |
http://goal.com/ success | |
http://healthfusion.com/ fail SSL handshake failed | |
http://hyatt.com/ success | |
http://icims.com/ success | |
http://icloud.com/ success | |
http://israelpost.co.il/ success | |
http://jetblue.com/ success | |
http://kmov.com/ success | |
http://lineage2.com/ success | |
http://liverpoolfc.com/ success | |
http://lotro.com/ success | |
http://lung.org/ fail Operation canceled | |
http://megabus.com/ success | |
http://metronews.ca/ success | |
http://nametests.com/ fail Operation canceled | |
http://nasioc.com/ success | |
http://nlm.nih.gov/ fail SSL handshake failed | |
http://nvidia.com/ fail Operation canceled | |
http://oclc.org/ fail Operation canceled | |
http://offgamers.com/ error | |
http://proxibid.com/ success | |
http://pubs.acs.org/ error | |
http://qsl.net/ fail SSL handshake failed | |
http://racingpost.com/ success | |
http://rockthevote.com/ success | |
http://rstudio.com/ success | |
http://sagepub.com/ fail SSL handshake failed | |
http://schoolofdragons.com/ success | |
http://sjtu.edu.cn/ fail SSL handshake failed | |
http://slashdot.org/ success | |
http://soccerway.com/ fail Operation canceled | |
http://southwest.com/ success | |
http://subaru.com/ success | |
http://suncountry.com/ fail Connection closed | |
http://sweepsadvantage.com/ success | |
http://tdameritrade.com/ success | |
http://trucktrend.com/ success | |
http://ualberta.ca/ fail SSL handshake failed | |
http://us.hsbc.com/ fail Operation canceled | |
http://verstappen.nl/ success | |
http://whatreallyhappened.com/ fail Operation canceled | |
http://worldpay.com/ error | |
http://yourhoustonnews.com/ success | |
http://zoo.sandiegozoo.org/ error | |
https://docs.google.com/ fail Operation canceled | |
https://www.kaiserpermanente.org/ success | |
https://www.wmo.int/ fail Operation canceled |
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
#!/usr/bin/env bash | |
xargs -L 1 -P 4 ./phantomjstest ./testA.js < sites.txt | tee resultsA.log | |
xargs -L 1 -P 4 ./phantomjstest ./testB.js < sites.txt | tee resultsB.log |
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://abc.net.au/ | |
http://about.com/ | |
http://academy.com/ | |
http://aerlingus.com/ | |
http://aiononline.com/ | |
http://airnewzealand.co.nz/ | |
http://ajronline.org/ | |
http://alarabiya.net/ | |
http://alsa.org/ | |
http://amtrak.com/ | |
http://annualreviews.org/ | |
http://apastyle.org/ | |
http://arborday.org/ | |
http://avert.org/ | |
http://aweber.com/ | |
http://bankofscotland.co.uk/ | |
http://basspro.com/ | |
http://bbc.co.uk/ | |
http://bbc.com/ | |
http://beallsflorida.com/ | |
http://bestbuy.ca/ | |
http://bethsoft.com/ | |
http://bitauto.com/ | |
http://bizjournals.com/ | |
http://canadiantire.ca/ | |
http://classicfm.com/ | |
http://crash.net/ | |
http://diabetes.org/ | |
http://earthclinic.com/ | |
http://evernote.com/ | |
http://freeonlinegames.com/ | |
http://globes.co.il/ | |
http://goal.com/ | |
http://healthfusion.com/ | |
http://hyatt.com/ | |
http://icims.com/ | |
http://icloud.com/ | |
http://israelpost.co.il/ | |
http://jetblue.com/ | |
http://kmov.com/ | |
http://lineage2.com/ | |
http://liverpoolfc.com/ | |
http://lotro.com/ | |
http://lung.org/ | |
http://megabus.com/ | |
http://metronews.ca/ | |
http://nametests.com/ | |
http://nasioc.com/ | |
http://nlm.nih.gov/ | |
http://nvidia.com/ | |
http://oclc.org/ | |
http://offgamers.com/ | |
http://proxibid.com/ | |
http://pubs.acs.org/ | |
http://qsl.net/ | |
http://racingpost.com/ | |
http://rockthevote.com/ | |
http://rstudio.com/ | |
http://sagepub.com/ | |
http://schoolofdragons.com/ | |
http://sjtu.edu.cn/ | |
http://slashdot.org/ | |
http://soccerway.com/ | |
http://southwest.com/ | |
http://subaru.com/ | |
http://suncountry.com/ | |
http://sweepsadvantage.com/ | |
http://tdameritrade.com/ | |
http://trucktrend.com/ | |
http://ualberta.ca/ | |
http://us.hsbc.com/ | |
http://verstappen.nl/ | |
http://whatreallyhappened.com/ | |
http://worldpay.com/ | |
http://yourhoustonnews.com/ | |
http://zoo.sandiegozoo.org/ | |
https://docs.google.com/ | |
https://www.kaiserpermanente.org/ | |
https://www.wmo.int/ |
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
#!/usr/bin/env phantomjs --load-images=false | |
var webPage = require('webpage'), system = require('system'); | |
var url = system.args[1]; | |
open(url, true, function () { phantom.exit(); }); | |
function open(url, done) { | |
var page = webPage.create(), error; | |
page.onError = function () {}; | |
page.onResourceError = function (e) { error = error || e; }; | |
page.open(url, function (status) { | |
var success = status === 'success'; | |
if (log) | |
console.log(url + '\t' + status + '\t' + (success ? '' : error.errorString)); | |
page.close(); | |
done(); | |
}); | |
} |
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
#!/usr/bin/env phantomjs --load-images=false | |
var webPage = require('webpage'), system = require('system'); | |
var url = system.args[1]; | |
open(url, false, function () { | |
open(url, true, function () { phantom.exit(); }); | |
}); | |
function open(url, log, done) { | |
var page = webPage.create(), error; | |
page.onError = function () {}; | |
page.onResourceError = function (e) { error = error || e; }; | |
page.open(url, function (status) { | |
var success = status === 'success'; | |
if (log) | |
console.log(url + '\t' + status + '\t' + (success ? '' : error.errorString)); | |
page.close(); | |
done(); | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment