Skip to content

Instantly share code, notes, and snippets.

@tr3buchet
Last active December 30, 2016 09:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tr3buchet/4481060 to your computer and use it in GitHub Desktop.
Save tr3buchet/4481060 to your computer and use it in GitHub Desktop.
python keyring cli for gister
### note
I installed keyring with pip install --user, so my keyring binary is at ~/.local/bin/keyring
# add public github token to keyring
[trey|d3v ~]% keyring set gister public_oauth
Password for 'public_oauth' in 'gister': <paste github oauth token here>
[trey|d3v ~]% keyring get gister public_oauth
your_token_will_be_displayed_if_you_do_this
# add private github token to keyring
[trey|d3v ~]% keyring set gister private_oauth
Password for 'private_oauth' in 'gister': <paste private github oath token here>
[trey|d3v ~]% keyring get gister private_oauth
your_token_will_be_displayed_if_you_do_this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment