Skip to content

Instantly share code, notes, and snippets.

http://www.veoh.com/
http://screen.yahoo.com/
http://blip.tv/
http://www.metacafe.com/
http://www.ovguide.com/
http://www.ndtv.com/video/
http://video.pbs.org/
http://www.microsoft.com/showcase/
http://www.youtube.com/
http://www.eonline.com/news/watch_with_kristin
@hallvors
hallvors / br-sites.txt
Last active August 29, 2015 13:57
Sites considered popular or important in Brazil
google.com.br
uol.com.br
globo.com
mercadolivre.com.br
itau.com.br
hao123.com
abril.com.br
terra.com.br
ig.com.br
caixa.gov.br
@hallvors
hallvors / mx-sites.txt
Last active August 29, 2015 13:57
Sites considered popular or important in Mexico
mercadolibre.com.mx
taringa.net
unam.mx
sat.gob.mx
segundamano.mx
eluniversal.com.mx
occ.com.mx
maps.google.com.mx
banamex.com.mx
musica.com
@hallvors
hallvors / bangladesh-sites.txt
Created March 25, 2014 13:56
Sites considered popular or important in Bangladesh
google.com.bd
prothom-alo.com
bdnews24.com
banglanews24.com
espncricinfo.com
kalerkantho.com
banglamail24.com
bdjobs.com
priyo.com
bikroy.com
#!/bin/bash
DATE=`date +%Y%m%d`
ALEXA_URL=http://www.alexa.com/topsites/countries%3B
COUNTRY_CODE=$1
OUTPUT_FILE=ALEXA_${COUNTRY_CODE}-${DATE}.txt
echo "Downloading Alexa top site data for $COUNTRY_CODE"
@hallvors
hallvors / bootstrap.js
Created July 11, 2014 21:50
Firefox test add-on, trying to find the simplest way to monitor loading of pages in tabs
"use strict";
// exploring add-ons API
// Goal: monitor all tabs, run code when new page loads
// Optionally also listen for document mutations
// some standard vars / shortcuts into Gecko's internals: classes, interfaces, utils
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
HTMLElement.prototype.appendChild = (function(originalMethod){
return function(child){
console.log('appending '+child);
return originalMethod.call(this, child);
}
})(HTMLElement.prototype.appendChild)
@hallvors
hallvors / test-slimerjs-194.js
Created July 23, 2014 10:48
test slimerjs issue 194
var page = require('webpage').create();
page.onConsoleMessage = function(message, line, file){
console.log(message);
}
page.open('data:text/html,<script>console.log("a", "b", "c", 100)</script><p>Hello world</p>', function(){setTimeout(phantom.exit, 1000)});
@hallvors
hallvors / headers.py
Created December 7, 2014 10:17
Checking headers returned from server with various UAs
#!/usr/bin/env python
import cgi
from os import environ
import cgitb
cgitb.enable()
import argparse
import requests
import re
from urlparse import urljoin
function(){
for(var i=0,f; f=document.getElementsByTagName("iframe")[i]; i++){
if(f.src.indexOf("players.brightcove.net")>-1)return "new";
if(f.src.indexOf("c.brightcove.com")>-1)return "old";
}
for(var i=0,s; s=document.scripts[i];i++){
if(s.src.indexOf("players.brightcove.net")>-1)return "new";
if(/(brightcove\\.js|BrightcoveExperiences?\\.js|admin\\.brightcove\\.com|c\\.brightcove\\.com)/i.test(s.src))return "old";
}
return "none";