Skip to content

Instantly share code, notes, and snippets.

@thejsj
Created August 23, 2016 04:31
Show Gist options
  • Save thejsj/80412d20d2645d9eba1b372745531822 to your computer and use it in GitHub Desktop.
Save thejsj/80412d20d2645d9eba1b372745531822 to your computer and use it in GitHub Desktop.
github-get-by-id () {
curl -s https://api.github.com/user/$1 | python -m json.tool
}
github-get-by-username () {
curl -s https://api.github.com/users/$1 | python -m json.tool
}
github-get-by-orgname () {
curl -s https://api.github.com/orgs/$1 | python -m json.tool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment