Skip to content

Instantly share code, notes, and snippets.

@xy4n
xy4n / pomfload
Created February 16, 2014 16:26 — forked from shizmob/pomfload
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` FILE [FILE...]"
exit 1
fi
for f in "$@"; do
d=$(curl -sS --progress-bar -F files[]=@"$f" http://pomf.se/upload.php | jq -c -r '.files[0].url')