diff options
Diffstat (limited to 'rc/bin/webpaste')
-rwxr-xr-x | rc/bin/webpaste | 8 |
1 files changed, 8 insertions, 0 deletions
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' |