Skip to content

Instantly share code, notes, and snippets.

@hitme
hitme / gist:a27687ebcc4ddfe7d92a
Created August 5, 2015 06:39
mac+as+gradle+genymotion搭建android调试环境
1. Download the latest AndroidStudios(AS)
2. Install Genymotion simultor.
3. Download 'gradle-2.2.1-all.zip',and unzip into 'GRADLE_PATH=gradle-2.2.1-all'
4. In AS, search 'Global Gradle settings. Unselect 'offline work',
select 'use local gradle distribution', and specify 'Gradle home' to the GRADLE_PATH directory.
5. Download 'android-sdk_r24.3.3-macosx.zip' and unzip into 'ANDROID_SDK_PATH=android-sdk-macosx'
6. In AS, search 'Android SDK',and specify 'Android SDK Location' to the ANDROID_SDK_PATH directory.
references:
@hitme
hitme / create_dmg.sh
Last active August 29, 2015 14:12 — forked from dataich/create_dmg.sh
set -ex
[ "$ACTION" = build ] || exit 0
[ "$BUILD_VARIANTS" = "normal" ] || exit 0
[ "$CONFIGURATION" = "Release" ] || exit 0
dir="$TEMP_FILES_DIR/disk"
dmg="$HOME/Desktop/$PROJECT_NAME.dmg"
rm -rf "$dir"
@hitme
hitme / howtorunspringshell
Last active August 29, 2015 14:05
how to debug a spring shell project
1. TO run a spring shell project in IDEA
[edit configurations]->add Application->specify [Main class] as "org.springframework.shell.Bootstrap"
2. TO run a spring shell project with maven (exec-maven-plugin)
$ cd path/to/projectRoot (where pom.xml exists)
$ mvn exec:java -Dexec.mainClass="org.springframework.shell.Bootstrap"
reference:
http://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/#d4e260
@hitme
hitme / brew switch
Created August 11, 2014 18:27
brew switch between maven2 and maven30
brew tap homebrew/versoins
brew install FORMULA # here is maven30\maven31\maven2 etc...
brew unlink maven2 # suppose that maven2 (version 2.2.1) is installed previously
brew link maven30 # now maven30 (version 3.0.x) will substitute maven2
# to revert this process, no need to reinstall maven2. just
brew unlink maven30
brew link maven2