Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrousavy/qpastebin

A quick Pastebin-uploader shell script using curl and the Pastebin REST API
https://github.com/mrousavy/qpastebin

bash pastebin script shell

Last synced: about 2 months ago
JSON representation

A quick Pastebin-uploader shell script using curl and the Pastebin REST API

Awesome Lists containing this project

README

        

# QPastebin

> A script to quickly paste text or files to [pastebin.com](http://pastebin.com)

## Install:
> (Optional)

1. Set API Token in `qpaste.sh` line **3**
```sh
vim qpaste.sh
```
2. Run install script
```sh
$ sudo ./install.sh
```

## Run:

> Run `./qpaste.sh` instead of `qpaste` if you didn't **[install](#install)**

1. Upload text
```sh
$ qpaste "Hello world!"
```
2. Upload a file
```sh
$ qpaste mycode.cpp
```

> (You can also directly copy the outputted link via `xclip`)