https://github.com/euank/simple-pomf-uploader
Made to handle piped in data as well as file args.
https://github.com/euank/simple-pomf-uploader
Last synced: over 1 year ago
JSON representation
Made to handle piped in data as well as file args.
- Host: GitHub
- URL: https://github.com/euank/simple-pomf-uploader
- Owner: euank
- License: unlicense
- Created: 2014-02-25T04:53:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-10T02:14:41.000Z (about 12 years ago)
- Last Synced: 2025-01-24T17:19:29.809Z (over 1 year ago)
- Language: Ruby
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simple-pomf-uploader
====================
Made to handle piped in data as well as file args.
# Usage
To upload 'file.txt', you would type `./pomf file.txt`
The real magic comes in with pipes though. For example, if you wanted to paste
your uptime for someone you could do `uptime | ./pomf`. Or perhaps you have an
image on your clipboard and want to upload it... Only a `xclip -o | ./pomf`
away.
# Why make another?
The other command line uploaders I looked at on the tools page, notably the
Simple Bash Uploader, did not handle pipes at all. I wanted pipes. I also wanted
it to get extensions right from pipes which was another task to itself.
# What's wrong with this one?
Requires ruby (not a default install on many distros) and doesn't have highly
informative error messages, multi-file uploading, or anything else complicated.
The code for figuring out extensions is also hacky, but I'm not sure there's a
better solution.