Skip to content

Instantly share code, notes, and snippets.

@0xjjpa
Created November 17, 2012 21:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 0xjjpa/4100532 to your computer and use it in GitHub Desktop.
Save 0xjjpa/4100532 to your computer and use it in GitHub Desktop.
Creating a GIST Token (Shell script)
#!/bin/bash
#Usage ./gistToken.sh USERNAME (don't forget to chmod+x it)
#Inspired in http://www.lornajane.net/posts/2012/github-api-access-tokens-via-curl
curl -v -u $1 -X POST https://api.github.com/authorizations --data "{\"scopes\":[\"gist\"]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment