all repos — dotfiles @ bbd6b18cf7b54c912f65b59bb6f25fd10a0c1ec1

my *nix dotfiles

bin/icyup.sh (view raw)

 1#!/bin/zsh
 2
 3hash=`md5sum <<EOF
 4$RANDOM
 5EOF` 
 6
 7fn=`echo $hash | awk '// { print $1 }'`
 8
 9if [ "$1" != "" ]; then
10	file=$1
11	ext="${file##*.}"
12	fullname="$fn.$ext"
13	scp $1 emerald:icywww/stuff/$fullname
14	echo "https://x.icyphox.sh/$fullname"
15else
16	echo "no path specified :v"
17fi