From 565a4d478e4631ca771e5d0f9e9120420f557b3c Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Fri, 20 Sep 2013 11:32:42 -0400 Subject: rename /rc/bin/ok to /rc/bin/webpaste --- rc/bin/webpaste | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 rc/bin/webpaste (limited to 'rc/bin/webpaste') diff --git a/rc/bin/webpaste b/rc/bin/webpaste new file mode 100755 index 000000000..c12835cc6 --- /dev/null +++ b/rc/bin/webpaste @@ -0,0 +1,8 @@ +#!/bin/rc +if(~ $#* 0) + file=/fd/0 +if not + file=$1 +hpost -u http://okturing.com -p / a_body@$file submit:submit fake:fake a_func:add_post url: | +grep -e '\/body\"' | +sed 1q | sed 's/^.*href=\"//g; s/body\".*$/body/g; s/^/http:\/\/okturing.com/g' -- cgit v1.2.3