mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
added pastebinit support and fixed small errors
This commit is contained in:
25
rtfm/PASTEBINIT.md
Normal file
25
rtfm/PASTEBINIT.md
Normal 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"```
|
||||
Reference in New Issue
Block a user