#!/usr/bin/env bash # puull: image uploader # # Requires: curl, maim # # Installation: curl 'https://puull.pw' | sudo tee /usr/bin/puull && sudo chmod +x /usr/bin/puull # # Source: https://github.com/janza/puull # # NO DROPBOX, NO PUUSH, ONLY PUULL set -e if [[ $(uname) == Linux ]]; then maim -s | curl -s -F "f=@-" 'https://puull.pw' else screencapture -i /tmp/screenshot.png curl -s -F "f=@/tmp/screenshot.png" 'https://puull.pw' fi