Script to send the content of currently selected text to Zipline #391
-
Hi, I would now like to use Zipline as a Pastebin. Could you give me a framework for such a script? (and add it to the documentation as I am sure it would interest others). Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Perhaps this can work for your use case: xsel -ob | curl -H "authorization: $TOKEN" -F file=@- -F type=text/plain $HOST/api/upload
|
Beta Was this translation helpful? Give feedback.
Perhaps this can work for your use case:
xsel -ob
will read what is in the clipboard and pipe it to curl. Not sure if I can get zipline to respond with extensions like.txt
or.js
though...