Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agentd00nut/pastestore
Barebones CLI php script to upload to pastebin.
https://github.com/agentd00nut/pastestore
Last synced: 1 day ago
JSON representation
Barebones CLI php script to upload to pastebin.
- Host: GitHub
- URL: https://github.com/agentd00nut/pastestore
- Owner: agentd00nut
- Created: 2018-08-27T20:53:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-27T21:35:40.000Z (about 6 years ago)
- Last Synced: 2023-10-20T16:14:33.110Z (about 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pasteStore
Easily send files, including images and most media types, to pastebin.
## Setup
Get your developer key from the [api pages](https://pastebin.com/api#1) and save it into the **devKey** file.If you want to make private posts do the same but for your user key and save it into the **userKey** file.
## Use
Passing data in from a pipe sets a random name and the contents to STDIN.
`cat myImage.jpg | pasteStore.php`Passing data in from a pipe with an arg sets the paste name to the arg and the contents to STDIN.
`cat myImage.webm | pasteStore.php thisIsMyCoolPaste`Passing just an arg treats the argument as the path to a file and pulls its contents.
`pasteStore.php myImage.mp4`Manually edit the code to change if its uploading as private or if its going to expire.
Better yet, write some argument handling and make a pull request!