Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Forked from 0xjjpa/gistToken.sh
Created September 13, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth22/afa3d46de945967a7fa9775a2102db3c to your computer and use it in GitHub Desktop.
Save hemanth22/afa3d46de945967a7fa9775a2102db3c 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