-
Ammend project .git/config to fetch pull/merge requests from the remote:
- Github:
[remote "origin"] url = [email protected]:cakesolutions/arm-vaas.git fetch = +refs/heads/*:refs/remotes/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
- Gitlab:
This file contains hidden or 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 | |
MATCH=$1; | |
for i in $(wmctrl -l | grep ${MATCH} | awk '{print $1}'); do wmctrl -b add,sticky -i -r ${i}; done |
This file contains hidden or 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
function round(num, precision) { | |
// Avoids all the funny rounding behaviour of javascript, eg. Math.round(1.0005, 3) !== 1.001 | |
return +(Math.round(num + 'e+' + precision) + 'e-' + precision); | |
} |
This file contains hidden or 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
if-eqz p2, :cond_0 | |
invoke-super {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context; | |
move-result-object v2 | |
const/4 v3, 0x0 | |
invoke-static {v2, p1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; | |
move-result-object v2 | |
invoke-virtual {v2}, Landroid/widget/Toast;->show()V | |
:cond_0 |
This file contains hidden or 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 screencap -p | sed 's/\r$//' > /cygdrive/c/Users/cnix/screen-`date +%H%M%S`.png |
This file contains hidden or 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 backup -noapk <package_name> && dd if=backup.ab bs=1 skip=24 | openssl zlib -d | tar -xvf - |
This file contains hidden or 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 -e | |
set -o pipefail | |
# Any arguments are incorrect. Note that git intercepts --help and tries to | |
# open the man page. | |
#if [ $# -gt 0 ]; then | |
# echo 'Usage: git merge-stats' | |
# exit 1 | |
#fi |
This file contains hidden or 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 [ -z $1 ]; then | |
echo "Usage: importcert.sh <CA cert PEM file>" | |
exit 1 | |
fi | |
CACERT=$1 | |
BCJAR=bcprov-jdk16-149.jar |
This file contains hidden or 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 | |
ZIP_FILE=`echo $1 | sed 's/.apk/.zip/'` | |
KEYSTORE=~/workspace/we7-Android/Main/release.keystore | |
cp $1 $ZIP_FILE | |
zip -d $ZIP_FILE META-INF/* | |
mv $ZIP_FILE tmp.unsigned.apk | |
echo Resigning APK |