Skip to content

Instantly share code, notes, and snippets.

@fabionuno
fabionuno / adbscreencap
Last active August 29, 2015 14:20
Take a Screenshot of Your Android Device
#!/bin/bash
# Usage
# ./adbscreencap <filename>
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > $1.png
@fabionuno
fabionuno / adb+
Created August 14, 2014 21:10 — forked from christopherperry/adb+
#!/bin/bash
# Script adb+
# Usage
# You can run any command adb provides on all your currently connected devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
#
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall com.example.android.apis
@fabionuno
fabionuno / gist:2d92ee716a91f636ed06
Created May 12, 2014 01:18
Upgrade Node.js via NPM
sudo npm cache clean -f
sudo npm install -g n
sudo n stable