SphericalKat / katbin

Small, lightweight pastebin+URL shortener written in Elixir using the Phoenix framework.

Home Page:https://katb.in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Suggestion] Ability to upload data to katb.in from command line via curl

tur1ngb0x opened this issue · comments

It would be nice to have a functionality similar to

$ command | curl -F 'f:1=<-' ix.io

example

$ cat /etc/fstab | curl -F 'f:1=<-' ix.io

output
http://ix.io/3ukb

curl -X POST https://katb.in/api/paste --data-binary "paste[content]=$(cat log.txt)"