App::N...e::Gist(3pm)

πŸ“¦
version 1.013 Β· 6 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

App::Nopaste::Service::Gist β€” the service provider for GitHub gist, aka http://gist.github.com/ πŸŽ€

(quick vibe check on the header: this page is App::N...e::Gist(3pm) from User Contributed Perl Documentation, bestie, ty for coming πŸ’–)


🌈 VERSION 🌈

version 1.013 β€” periodt πŸ‘‘


πŸ” GitHub Authorization πŸ”

okay so. to make gists you have to get an oauth token, no way around it. luckily it's lowkey easy. you can grab one with curl like this:

curl -X POST 'https://USERNAME:PASSWORD@api.github.com/authorizations' \
    -d '{"scopes":["gist"],"note":"App::Nopaste"}'

orrr you can let this very module do the same thing for you:

perl -MApp::Nopaste::Service::Gist -e 'App::Nopaste::Service::Gist->create_token'

you can also just generate a token the manual way β€” navigate over to https://github.com/settings/tokens and make yourself a new token with the 'Create gists' ability. iconic behavior honestly.

then export the resulting token as the GITHUB_OAUTH_TOKEN environment variable. that's what grants gist rights to App::Nopaste (or anything else that β€” yeah the sentence genuinely just ends there in the original, we love a cliffhanger πŸ’€). Don't worry, you can revoke access rights anytime from the GitHub profile settings 🫢.

alternatively, you can export the GITHUB_USER and GITHUB_PASSWORD environment variables, just like for the gist https://github.com/defunkt/gist utility.

and one more option for the girlies: you can simply store your credentials in plaintext in ~/.github, like in:

login bob
password ilikeducks

That's it! πŸ¦‹


πŸ†˜ SUPPORT πŸ†˜

Bugs may be submitted through the RT bug tracker https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste (or bug-App-Nopaste@rt.cpan.org).


πŸ‘‘ AUTHOR πŸ‘‘

Ricardo SIGNES, <rjbs@cpan.org>


This software is copyright (c) 2008 by Shawn S Moore.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, bestie!! πŸ’œ generated by perl v5.36.0 on 2022-08-28 β€” stay gisting, stay hydrated, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from