all repos — dotfiles @ 9689c8d78ba688312f01bc493f75743e6528ba33

my *nix dotfiles

bin/icyup.sh (view raw)

 1#!/usr/bin/env bash
 2
 3n=3; fn=$(tr -cd '[:alnum:]' < /dev/urandom | head -c$n)
 4
 5if [ "$1" != "" ]; then
 6	file=$1
 7	ext="${file##*.}"
 8	fullname="$fn.$ext"
 9	scp -P 443 "$1" emerald:icywww/stuff/"$fullname"
10	echo "https://x.icyphox.sh/$fullname"
11	echo "https://x.icyphox.sh/$fullname" | xclip -selection clipboard
12else
13	echo "no path specified :v"
14fi