Skip to content

Instantly share code, notes, and snippets.

@seiji
Created October 22, 2012 05:59
Insert Private Feed of Github
$ mongo
> use github
> db.createCollection('feed', { capped: true, size: 100000 })
# require jsawk (with spidermonkey)
curl https://github.com/$username.private.json?token=$token | jsawk "this.entry" | mongoimport --jsonArray --upsert -d github -c feed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment