dotfiles/bin/haste
2018-05-03 15:21:02 +02:00

4 lines
No EOL
141 B
Bash
Executable file

#!/bin/bash
_SERVER="https://paste.cresi.be"
a=$(cat);
curl -X POST -s -d "$a" ${_SERVER}/documents | awk -F '"' '{print "'${_SERVER}'/"$4}';