create-gist
create-gist copied to clipboard
Create Gist from command line
create-gist.sh
A utility to create gists from command line
usage:
create-gist.sh /path/to/file your_token
or
lsusb | create-gist.sh your_token
If no token is passed and ~/.create-gist.cfg is found,
contents of config file is used as the token, so
the usage becomes:
lsusb | create-gist.sh
or
create-gist.sh /path/to/file
Creating OAuth token
-
Go to https://github.com/settings/tokens/new
-
Generate a new token with
gist(create gist) permission. -
Use the token for authentication:
lsusb | create-gist.sh your-token-here
-
Optionally save your token to
~/.create-gist.cfgfile.
Dependencies
curl
apt-get install curl