added pastebinit support and fixed small errors

This commit is contained in:
Chris
2018-12-22 21:38:48 +01:00
parent 63a28b8b4b
commit 3345eb399c
6 changed files with 73 additions and 4 deletions

25
rtfm/PASTEBINIT.md Normal file
View File

@@ -0,0 +1,25 @@
# How to use Pictshare text upload with pastebinit
1. Install [pastebinit](https://help.ubuntu.com/community/Pastebinit)
2. Create a file in /usr/share/pastebinit.d/ called "pictshare.net.conf"
3. Paste the following lines in this new file:
```
[pastebin]
basename = pictshare.net
regexp = https://pictshare.net
https = true
[format]
content = api_paste_code
page = page
regexp = regexp
[defaults]
page = /api/pastebin.php
regexp = (.*)
```
Now you should be able to use pastebinit like this: ```echo "hello world" | pastebinit -b pictshare.net```
If you want to use pictshare as your default you can either make an alias or edit ```/usr/bin/pastebinit``` and set ```defaultPB = "pictshare.net"```