Skip to content

Instantly share code, notes, and snippets.

@hrishioa
Last active March 31, 2018 01:31
Show Gist options
  • Save hrishioa/0a2ea106a6eb116c123ae9b868887784 to your computer and use it in GitHub Desktop.
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
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