bin/up
#!/bin/sh if [ -n "$1" ]; then scp "$1" trash.j3s.sh:/var/www/trash.j3s.sh/ echo "https://trash.j3s.sh/$1" | xclip -sel clip else scrot -s -e 'mv $f /tmp/' for i in $(cd /tmp ; ls *_scrot.png); do scp "/tmp/$i" trash.j3s.sh:/var/www/trash.j3s.sh/ss/ > /dev/null echo "https://trash.j3s.sh/ss/$i" | xclip -sel clip done rm /tmp/*_scrot.png fi