From b9c2ce5b7a2afc82fc70bf66140c8559dcce98c9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 30 Mar 2009 15:45:04 +0200 Subject: added upload script for tempfs.com --- tempfs.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tempfs.sh (limited to 'tempfs.sh') diff --git a/tempfs.sh b/tempfs.sh new file mode 100755 index 0000000..2602b9e --- /dev/null +++ b/tempfs.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#---------------------------------------------------- +# Version: 0.1.0 +# Author: Florian "Bluewind" Pritz +# +# Copyright (C) 2009 Florian Pritz +# +# Licensed under GNU General Public License v3 +# (see COPYING for full license text) +# +#---------------------------------------------------- +# Upload file to tempfs and copy URL to cpulboard +#---------------------------------------------------- + +URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | ack 'http://.*/uploadedFiles/[^\s]*?' | sed 's/<\/span>//') + +echo -n $URL | nohup >/dev/null 2>&1 xclip +echo $URL + -- cgit v1.2.3-24-g4f1b