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
-
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.cfg
file.
curl
apt-get install curl