Skip to content

Instantly share code, notes, and snippets.

@paddyzab
Created September 4, 2015 15:01
Show Gist options
  • Save paddyzab/62023b7d12312ba8b0ff to your computer and use it in GitHub Desktop.
Save paddyzab/62023b7d12312ba8b0ff to your computer and use it in GitHub Desktop.
function mytakescreenshoot() {
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png sips -Z 640 screen.png
echo "Resized and saved in current folder as: screen.png"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment