Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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