Github gists

When multiple people are uploading code snippets to Pastebin from the same network (and same public IP address), we observed some sort of rate-limiting. After a few uploads we are unable to create new pastebins. That’s why an alternative is presented here, using Github gists.

Go to Github and create a free account.

Get your Github API key

To be able to send your data to Github, you’ll need an API-key. To get one, follow Github’s own tutorial

Make a fine grained personal access token, which has permissions to create and modify gists. Remember: don’t lose this key and also don’t share it with anyone!

Correct permissions Save your token in a save spot

Create a new file named logindata.ps1 file with the code below and copy paste your fine grained personal access token into that file.

$FGPAT     =   "PUT-FGPAT-HERE"