<<<

Save this script as /usr/bin/clip and chmod +x it. It can be used directly with clip <file> [lifetime in minutes], or via pipe with echo example | clip [litefime in minutes]

#!/bin/bash url=https://clip.0x7359.com/ # Default time = 1440 min (24h) t=1440 if [ -t 0 ]; then if [ ! -z $2 ];then t="$2" fi curl -sF "file=@$1" -F "time=$t" $url else if [ ! -z $1 ];then t="$1" fi curl -sF 'file=@-' -F "time=$t" $url; echo fi
Bugs/Suggestions? Let me know! =)
Mail: clip[at]0x7359[dot]com