Last active
March 31, 2018 01:31
-
-
Save hrishioa/0a2ea106a6eb116c123ae9b868887784 to your computer and use it in GitHub Desktop.
Create simple gist for quick save from command line. Needs username and password in plaintext
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
curl -X POST -d "{\"public\":true,\"files\":{\"${1}\":{\"content\":\"${2}\"}}}" -u username:password https://api.github.com/gists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment