$set_android_device.py adb shell
(1) - R32D3006XXX [device usb:3-1.1 product:mantaray model:Nexus_10 device:manta]
(2) - 01499EAD0701XXXX [device usb:3-1.4 product:yakju model:Galaxy_Nexus device:maguro]
2
shell@maguro:/ $
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "${#}" != "1" ]]; then | |
echo "Need exactly one command line argument: package name" | |
exit 1 | |
fi | |
PACKAGE=${1} | |
echo "Please allow backup for: ${PACKAGE}" | |
adb backup -f data.ab -noapk ${PACKAGE} | |
dd if=data.ab bs=1 skip=24 | openssl zlib -d | tar -xvf - | |
rm data.ab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adjust these path to where ever the executables are | |
COFFEE_BIN = ./node_modules/.bin/coffee | |
UGLIFY_BIN = ./node_modules/.bin/uglifyjs | |
# https://github.com/edc/mapcat | |
MAPCAT_BIN = ./node_modules/.bin/mapcat | |
# Where your coffee files are | |
INPUT_FOLDER = ./input | |
# Where you want your output | |
OUTPUT_FOLDER = ./output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "nginx http daemon" | |
author "Philipp Klose" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/opt/nginx/sbin/nginx | |
env PID=/opt/nginx/logs/nginx.pid | |
expect fork |
NewerOlder