Skip to content

Instantly share code, notes, and snippets.

View mathiaswking's full-sized avatar

Mathias Westerdahl mathiaswking

View GitHub Profile
@mathiaswking
mathiaswking / android_deploy.sh
Last active June 18, 2019 07:24
Deploys an .apk to the USB connected Android device. Starts the app, and grabs the logging events for that PID
#!/usr/bin/env bash
#set -e
PACKAGE=$1
if [ -z "$PACKAGE" ]; then
echo "You must pass a .apk as input!"
exit 1
fi
@mathiaswking
mathiaswking / .profile
Created March 20, 2019 08:06
The current bash setup
export ANDROID_HOME=~/android/android-sdk
export ANDROID_NDK=~/android/android-ndk-r10e
export ANDROID_NM=arm-linux-androideabi-nm
export PATH=$ANDROID_HOME/platform-tools/:$ANDROID_HOME/tools:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin:$PATH
DEFOLDDIR=~/work/defold
cd $DEFOLDDIR
alias defoldshell="$DEFOLDDIR/scripts/build.py shell"
alias eclipse="/Applications/eclipse/eclipse -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java &"