Skip to content

Instantly share code, notes, and snippets.

View DanielFGray's full-sized avatar

Daniel Gray DanielFGray

View GitHub Profile
@DanielFGray
DanielFGray / pomf
Last active August 29, 2015 14:17 — forked from KittyKatt/pomf
#!/usr/bin/env bash
# pomf.se uploader
# https://gist.github.com/KittyKatt/5818701
# requires: curl
if ! type 'curl' &> /dev/null; then
err 'requires curl to upload'
exit 1
fi
@DanielFGray
DanielFGray / pomf
Created November 13, 2013 23:07 — forked from KittyKatt/pomf
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then