summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtempfs.sh19
1 files changed, 19 insertions, 0 deletions
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 <f-p@gmx.at>
+#
+# 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
+