all repos — dotfiles @ 5cae5ce7fa8585282f99f5b0c57b3e31ba471a58

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