Permalink
Browse files

LazyMode puu.sh CLI

  • Loading branch information...
1 parent 009be4a commit 0e9ee76d1cc2e4d1455a5087819e3e3a0ed97e3e @nekodex nekodex committed Apr 8, 2011
Showing with 25 additions and 0 deletions.
  1. +5 −0 README.md
  2. +10 −0 puush/README.md
  3. +10 −0 puush/puu.sh
View
@@ -7,3 +7,8 @@ reconnected.
### Chromium Nightly Update
Bash script to update Chromium to latest nightly build (OSX).
+
+### puu.sh CLI
+
+Bash script to upload to puush.me from the command line.
+
View
@@ -0,0 +1,10 @@
+## puu.sh command line client
+
+Bash script to upload to puush.me from the command line. (requires curl)
+
+### Instructions
+1. Throw it in your $PATH somewhere
+2. Edit puu.sh and throw in your email + api key
+3. ./puu.sh <file>
+4. ???
+5. Profit!
View
@@ -0,0 +1,10 @@
+#!/bin/bash
+EMAIL=#<email>
+APIKEY=#<apikey>
+ENDPOINT=http://puush.me
+
+if [ $# -eq 1 ]; then
+ curl -s -F "z=lol" -F "e=$EMAIL" -F "k=$APIKEY" -F f=@$1 $ENDPOINT/api/up/ | cut -d',' -f 2
+else
+ echo "Usage: puu.sh <file>"
+fi

0 comments on commit 0e9ee76

Please sign in to comment.