$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
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 |
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
#!/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 |
I hereby claim:
- I am thehippo on github.
- I am thehippo (https://keybase.io/thehippo) on keybase.
- I have a public key whose fingerprint is B42E 4C13 BE39 A091 5154 C31B F2A5 FE09 95B6 4476
To claim this, I am signing this object:
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 | |
sudo add-apt-repository ppa:webupd8team/java --yes | |
sudo apt-get update | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install oracle-java7-installer --yes --force-yes --assume-yes |
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
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="2581" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0", MODE="0660", GROUP="your_user_group" |
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 | |
# | |
# abort commit if on feature/branch and nothing else than auto generated commit message | |
# is entered | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
if [[ $current_branch == "feature/"* ]] | |
then | |
first_line=$(head -n 1 $1) | |
if [[ $first_line == "(${current_branch:8}):" ]]; then | |
echo 'No valid commit message entered.' |
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
generateUUID: () -> | |
d = new Date().getTime() | |
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace /[xy]/g, (c) -> | |
r = (d + Math.random() * 16) % 16 | 0 | |
d = Math.floor(d / 16) | |
(if c is 'x' then r else r & 0x3 | 0x8).toString 16 |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type unlocked struct { | |
i int | |
} |
OlderNewer