A Pen by Russell Beattie on CodePen.
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
package feeds | |
var Ns = map[string]string{ | |
// via http://feed2.w3.org/docs/howto/declare_namespaces.html | |
"http://a9.com/-/spec/opensearch/1.1/": "opensearch", | |
"http://a9.com/-/spec/opensearchrss/1.0/": "opensearch10", | |
"http://backend.userland.com/blogChannelModule": "blogChannel", | |
"http://backend.userland.com/creativeCommonsRSSModule": "creativecommons", | |
"http://backend.userland.com/creativeCommonsRssModule": "creativeCommons", |
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
# works on my machine... OS X 10.8.2, Python v2.7.3 | |
import sys | |
import subprocess | |
import multiprocessing | |
def checkName(q): | |
proc_name = multiprocessing.current_process().name |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Google Reader Bundles</title> | |
</head> | |
<body> | |
<outline title="Media Center" text="Media Center"> | |
<outline text="Charlie Owen" title="Charlie Owen" type="rss" | |
xmlUrl="http://blog.retrosight.com/SyndicationService.asmx/GetRss" htmlUrl="http://blog.retrosight.com/"/> | |
<outline text="Chris Lanier" title="Chris Lanier" type="rss" |
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
p=`pwd` | |
for dirname in `find . -type d -maxdepth 1 -mindepth 1` | |
do | |
if [ -d $dirname/.git ] | |
then | |
cd $dirname | |
echo `pwd` | |
git pull origin master | |
fi | |
cd $p |
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
108.168.196.50 - - [21/Apr/2013:08:37:05 -0700] "GET /robots.txt HTTP/1.1" 200 558 "-" "Mozilla/5.0 (compatible; Wazzup1.0.7287; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:08:37:05 -0700] "GET /blog/ HTTP/1.1" 200 21409 "-" "Mozilla/5.0 (compatible; Wazzup1.0.9791; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:10:59:17 -0700] "GET /robots.txt HTTP/1.1" 200 558 "-" "Mozilla/5.0 (compatible; Wazzup1.0.9669; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:10:59:17 -0700] "GET /blog/ HTTP/1.1" 200 21409 "-" "Mozilla/5.0 (compatible; Wazzup1.0.5058; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:10:59:17 -0700] "GET /blog/js/libs/jquery-1.6.2.js HTTP/1.1" 200 236202 "-" "Mozilla/5.0 (compatible; Wazzup1.0.4495; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:10:59:18 -0700] "GET /blog/js/libs/highlight.pack.js HTTP/1.1" 200 27566 "-" "Mozilla/5.0 (compatible; Wazzup1.0.3834; http://50.22.201.16/Wazzup)" | |
108.168.196.50 - - [21/Apr/2013:10:59:1 |
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
Wordpress hubs are formatted like this: http://www.example.com/?pushpress=hub | |
17605 http://pubsubhubbub.appspot.com/ | |
1493 http://hubbub.api.typepad.com/ | |
797 http://tumblr.superfeedr.com/ | |
185 http://superfeedr.com/hubbub | |
144 http://pubsubhubbub.appspot.com | |
103 http://posterous.superfeedr.com | |
103 http://www.pheedo.com/api/hub/ |
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
var utils = require('../utils.js'), | |
pg = require('pg').native, | |
http = require('http'), | |
httpreq = require('./httpreq.js'), | |
async = require('async'), | |
events = require('events'), | |
lodash = require('lodash'); | |
var app = new events.EventEmitter(); |
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
package main | |
import ( | |
_ "github.com/bmizerany/pq" | |
"database/sql" | |
"net/http" | |
"log" | |
"net" | |
"time" | |
"strconv" |