Skip to content

Instantly share code, notes, and snippets.

@dinks
Last active July 26, 2018 17:02
Show Gist options
  • Select an option

  • Save dinks/8446517 to your computer and use it in GitHub Desktop.

Select an option

Save dinks/8446517 to your computer and use it in GitHub Desktop.
ISP Bad?
# Get the-1m.csv from Alexa http://www.alexa.com/topsites (right hand side of page)
for i in `head -n 1000 top-1m.csv | cut -f2 -d,`; do
echo "Site: $i";
diff <(curl --ipv4 -s -v --dns-servers 66.x.x.4,66.x.x.4 --url http://$i/ 2>&1 | grep -v "0x" | grep -v "Date: ") <(curl --ipv4 -s -v --dns-servers 8.8.8.8,8.8.4.4 --url http://$i/ 2>&1 | grep -v "0x" | grep -v "Date: ");
done > 1000.diff.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment