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
import java.lang.annotation.Annotation; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
// from http://code.google.com/p/reflections/ | |
import org.reflections.Reflections; |
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 | |
# Pushesh all branch heads from origin remote to backup repo | |
# prerequisites: | |
# 1. git clone <from the origin> | |
# 2. git remote add backup <backup repo> | |
git branch -a | grep remotes/origin | cut '-d/' -f3 | grep -v HEAD | while read i; do git push -u backup remotes/origin/$i:refs/heads/$i; done |
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
# this file should be at /etc/udev/rules.d/51-android.rules | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="custom_rules"> | |
<!-- ******************************************************* --> | |
<!-- ******************* Other Properties ****************** --> | |
<!-- ******************************************************* --> | |
<property environment="jenkins-env"/> | |
<!-- ******************************************************* --> |
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 | |
set -e | |
set -x | |
git reset --hard ORIG_HEAD || echo skipping | |
git checkout . | |
rm -rf `git status -s | cut -c 4-` | |
git remote | grep clone || git remote add clone $1 |
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
javascript:var x=document.getElementsByTagName("input"); for(var i=0;i<x.length;i++) { if (x[i].value == 'Invite') {x[i].click();}} |
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
adb shell dumpsys activity activities |
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
# all activity tasks | |
adb shell dumpsys activity activities |
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
for APK in `find $WORKSPACE -type f -name '*-release*.apk'`; do | |
for DEVICE in `adb devices | tail -n+2 | cut -f1`; do | |
echo "installing $APK on $i" | |
adb -s $DEVICE install -rs $APK | |
done | |
done | |
echo "done deploying" |
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
for APK in `find $WORKSPACE -type f -name '*-release*.apk'`; do | |
if [[ "$APK" != *unaligned* ]]; then | |
if [[ "$APK" != *unsigned* ]]; then | |
for DEVICE in `adb devices | tail -n+2 | cut -f1`; do | |
echo "installing $APK on $i" | |
adb -s $DEVICE install -rs $APK | |
done | |
fi | |
fi | |
done |
OlderNewer