shithub: paste

ref: 4f19f3128c19e76a6fc2890b1de48c664fb1af03
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