Skip to content

Instantly share code, notes, and snippets.

View donoage's full-sized avatar

Stephen Bae donoage

  • Upstart
  • New York, NY
View GitHub Profile
@jasonbouffard
jasonbouffard / screenshot-to-dropbox
Last active September 26, 2015 06:07
OSX Bash script to snap an interactive screenshot into your Dropbox public folder and copy the public url to your clipboard.
#!/bin/bash
DATE=$(date +"%Y-%m-%d");
TIME=$(date +"%I.%M.%S");
AMPM=$(date +"%p");
FILENAME=Screen\ shot\ $DATE\ at\ $TIME\ $AMPM.png;
# You can export you DROPBOX_USER_ID in your .profile
# or hardcode it here by replacing YOURDROPBOXUSERID
DB_USER_ID=${DROPBOX_USER_ID-YOURDROPBOXUSERID};