all repos — dotfiles @ dfbc54e99a122a00883aecd677d75896de91ffcd

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