small pixel drawing of a pufferfish dotfiles

bin/up

1 2 3 4 5 6 7 8 9 10 11 12 13
#!/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