Giter Site home page Giter Site logo

pastebin-shell's Introduction

pastebin-shell

Bash pastebin.com client. Bash Script to post text from stdin to pastebin.com.

Installation

Download:

curl -f https://raw.githubusercontent.com/mefuckin/pastebin-shell/master/pbin -o pbin
chmod +x pbin

Run:

./pbin -h

Usage

Usage: pbin [options]
Post text from stdin to pastebin.com.

Options:
	-l				Log into pastebin.com
	-u				Your pastebin.com username
	-p				Your pastebin.com password
	-n name				Paste title
	-f format			Syntax highlightig format (you can find list 
					of formats at http://pastebin.com/api#5)
	-e expire			Paste expire time:
					  n (or never) - never
					  10M          - 10 minutes
					  1H           - 1 hour
					  1D           - 1 day
					  1M           - 1 month
	-r private			Private settings: public (or 0), unlisted (or 1)
					or private (or 2, need to login)
	-h				Show this message
	-o				Print sample config
	-c /path/to/pastebin.conf	Set path to config file

Examples:

pbin < /proc/cpuinfo

echo -e "foo\nbar" | bash pbin -n "foobar.txt" -l 1

Requirements

Only bash and curl.

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.