all repos — dotfiles @ 132998af8625888303ba5b7997d1c64349e9b0c2

my *nix dotfiles

bin/icyup.sh (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
#!/bin/zsh

hash=`md5sum <<EOF
$RANDOM
EOF` 

fn=`echo $hash | awk '// { print $1 }'`

if [ "$1" != "" ]; then
	file=$1
	ext="${file##*.}"
	fullname="$fn.$ext"
	scp $1 boop:www/upload/$fullname
	echo "https://xix.ph0x.me/$fullname"
else
	echo "no path specified :v"
fi