shithub: paste

ref: c471747b833781fb4a941a82ad029caa9c65d9b3
dir: /catbox/

View raw version
#!/bin/rc

fn usage {
	echo usage: catbox file >/fd/2
	exit usage
}
if(! ~ $#* 1)
	usage
hpost -u https://catbox.moe -m /user/api.php 'reqtype:fileupload' 'fileToUpload@'^$1 | tee /dev/snarf ; echo