Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 1.04 KB
# Gradle
export GRADLE_HOME=~/3rdparty/gradle
export GRADLE_OPTS='-Xmx512M -XX:MaxPermSize=256M'
export PATH=${GRADLE_HOME}/bin:${PATH}
alias push='jsptree index && gradle reaPrePush && git push origin master'
# Tomcat
export CATALINA_HOME=~/3rdparty/apache-tomcat-6.0.32
# Tomcat aliases
alias tc='cd ${CATALINA_HOME}'
alias tcc='rm -rf ${CATALINA_HOME}/webapps/*DS*'
alias tcl='cd ${CATALINA_HOME}/logs'
alias tcs='rm -rf $CATALINA_HOME/work && $CATALINA_HOME/bin/startup-ds.sh'
alias tcx='$CATALINA_HOME/bin/shutdown.sh'
alias tct='tail -f ${CATALINA_HOME}/logs/catalina.out'
alias tcw='cd ${CATALINA_HOME}/webapps'
# Cucmber
export TEST_ENV=dev
alias bec='bundle exec cucumber'
# JSHint
alias jshint=/Users/eric_entzel/3rdparty/jshint/env/jsc.sh
# Print the N highest (default 20) listing ids from test fixtures in ascending order
nextid () {
limit=${1:-30}
grep -r listing_id: fixtures/test-data/ | awk "{print \$3}" | sort -n | tail -n $limit
}
duplicate_configs () {
grep '=' $1 | awk -F= "{print \$1}" | sort | uniq -c | grep -v ' *1'
}