Giter Club home page Giter Club logo

cist's Introduction

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

cist

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"

cist's People

Contributors

mdp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.