Skip to content

ceremcem/create-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

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

  1. Go to https://github.com/settings/tokens/new

  2. Generate a new token with gist (create gist) permission.

  3. Use the token for authentication:

    lsusb | create-gist.sh your-token-here

  4. Optionally save your token to ~/.create-gist.cfg file.

Dependencies

  • curl
apt-get install curl

About

Create Gist from command line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages