Skip to content

Instantly share code, notes, and snippets.

View anaderi's full-sized avatar

Andrey Ustyuzhanin anaderi

View GitHub Profile
@rasshofer
rasshofer / capture.sh
Created January 8, 2015 07:07
OS X: Take a screenshot, upload the screenshot to PicPig and copy the URL to your clipboard
#!/bin/bash
API_KEY="abc123"
API="https://picpig.com/api/$API_KEY"
FILE="screencapture-`date +%s`.png"
# Capture screen interactively by selection or window
screencapture -i $FILE