Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

an5t/pastebin-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

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.

About

bash pastebin.com client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /