all repos — dotfiles @ 8a042f473974e47d5a6cbbbd24a49583b00899a6

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