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/sh | |
# usage: ./push_hosts.sh [<genymotion_emulator_serial>] | |
# IP that genymotion assigns to host machine | |
IP="10.0.3.2" | |
[ -z "$1" ] && ADB="adb" || ADB="adb -s $1" | |
cat /etc/hosts | grep '127.0.0.1' | grep -v 'localhost' | sed 's/127.0.0.1/'$IP'/' > /tmp/hosts-adb |
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
. ~/.profile | |
. ~/.bashrc |
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
export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH | |
#export GIT=/usr/local/bin/git | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
# Add Android paths | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools |
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
#include <stdio.h> | |
/** | |
* Compile: gcc -o sort sort.c | |
* | |
* Usage: ./sort integer1, integer2 ... | |
*/ | |
int main (int argc, char *argv[]) { | |
// array that will store sorted input | |
int copy[argc - 1]; |