https://github.com/mdp/cist
Curl to Gist
https://github.com/mdp/cist
Last synced: about 1 year ago
JSON representation
Curl to Gist
- Host: GitHub
- URL: https://github.com/mdp/cist
- Owner: mdp
- Created: 2013-04-03T05:38:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T20:13:51.000Z (over 11 years ago)
- Last Synced: 2025-04-10T23:52:45.585Z (about 1 year ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TL;DR;
Use curl to quickly send files to gist.
$ curl -sT README.md cist.mdp.im
# => https://gist.github.com/ed946bc6572be36f75e5
Feel free to use my heroku hosted service, or run your own.
# cist
## curl to gist

### Why
I'm sometimes on a new machine and I'd like to stash something quickly. Rather
than setup the gist tool, I'd like to just curl the file and get back an
anonymous private gist.
cist does that.
### How
Curl the file you want to gist
$ curl -sT index.js cist.mdp.im
# => https://gist.github.com/ed946bc6572be36f75e5
This will return a gist URL with a single file named 'index.js' with the contents of index.js
### Using it from vi
Send a selection to a gist
`:'<,'>w !curl -sT - cist.mdp.im`
Gist the entire file
`:w !curl -sT - cist.mdp.im`
### Run your own 'cist' server
It's designed to run on Heroku. Run it on Heroku.
#### Further instructions
If you want to avoid the unauthenticated rate limit of 60 gists per hour, add some keys.
1. Go to your Github account settings page and create a new application
2. Add the keys the Heroku app
heroku config:set CLIENT_ID="1234" CLIENT_SECRET="5678"