all repos — dotfiles @ 9ab2d3b5c487aea8b4c5dd139a73f2997ae0b57f

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