Skip to content

Instantly share code, notes, and snippets.

@seiji
Created October 22, 2012 05:59
Show Gist options
  • Save seiji/3929920 to your computer and use it in GitHub Desktop.
Save seiji/3929920 to your computer and use it in GitHub Desktop.
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