GithubHelp home page GithubHelp logo

gistrb's Introduction

gistrb - A command-line utility to post files directly as Gists on GitHub.com

FOSSA Status

Description:

This is a utility to easily post local source files you have on GitHub Gists. It supports uploading multi-file Gists, authenticated Gists, anonymous Gists, and declaring the Gists as private or public. You can also attach descriptions to the Gist you post.

Usage:

gistrb [opts] source_file source_file2 ...

gistrb also supports input from STDIN. If gistrb is invoked with no files and nothing piped in, then it will wait on the terminal for input from STDIN until it reads an EOF character. An EOF character can be inserted on the terminal using Ctrl+D.

Any files in the Gist from STDIN will be labelled as "STDIN".

$ cat foo.txt | gistrb [opts] source_file # Reads foo.txt from piped STDIN and source_file as a file.
$ gistrb [opts] # Waits until it reads Ctrl+D and processes that data as STDIN

Options:

Option Description
-u | --user Post the Gist as currently signed in user
-s | --sign-in Sign into the utility using your GitHub account
--sign-out Sign out of the utility
-p | --public Post the Gist as public (it posts as private by default)
-d [DESC] | --description [DESC] Use [DESC] as the description for the Gist
-c | --clipboard Automatically put the created Gist URL into your clipboard (beta)
-n | --netrc Utilize .netrc file for storing/retrieving authorization token

Installation:

Using RubyGems, simply run this command: gem install gistrb

Requirements:

If on Linux, you need to have xclip installed for clipboard support

To install this on Ubuntu-based distributions, run the following command.

sudo apt-get install xclip

License

MIT License

Copyright © 2018 Cameron Roe

FOSSA Status

gistrb's People

Stargazers

Cameron Roe avatar Ian Drake avatar Geoff Davis avatar

Watchers

James Cloos avatar  avatar

Forkers

fossabot

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.