Skip to content

Instantly share code, notes, and snippets.

@eighthave
Created August 4, 2016 12:42
Show Gist options
  • Save eighthave/a345997be7e5dff8718fc42a726cef19 to your computer and use it in GitHub Desktop.
Save eighthave/a345997be7e5dff8718fc42a726cef19 to your computer and use it in GitHub Desktop.
script to quickly take a screenshot from Android then post it to clbin.com
#!/bin/sh
cd ~/Downloads
filename=screenshot-`date '+%s'`.png
$ANDROID_HOME/tools/screenshot2 $@ $filename
echo ~/Downloads/$filename
curl -F "clbin=@$filename" https://clbin.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment