-
-
Save nowakf/e88fc835db8a6c7e4e1a9dd2ead19fb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -X POST -d '{"public":true,"files":{"'"$1"'":{"content":'"$(cat /dev/stdin | jq -Rsc .)"'}}}' -u nowakf:$(pass github.com/nowakf) 'https://api.github.com/gists' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment