Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
-XX:+UnlockExperimentalVMOptions | |
-XX:+UseG1GC | |
-XX:MaxGCPauseMillis=2000 | |
-XX:GCPauseIntervalMillis=5000 | |
-XX:+G1ParallelRSetUpdatingEnabled | |
-XX:+G1ParallelRSetScanningEnabled | |
-XX:+DoEscapeAnalysis | |
-XX:+AggressiveOpts | |
-Xms256m | |
-Xmx768m |
Ant.property (environment:'env') | |
eventStatusInterrupt = { args -> | |
println "Caught interruption" | |
println args | |
} | |
//eventStatusUpdate = { msg -> popUpMessage(args) } | |
eventStatusFinal = { args -> popUpMessage(args) } |
#inspired by rvm, npm, etc | |
# gvm 2.0.0 | |
gvm () { | |
export PATH=~/.grails/grails-dists/grails-$1/bin:$PATH | |
export GRAILS_HOME=~/.grails/grails-dists/grails-$1 | |
if [ -d "grails-app" ]; then | |
grails clean | |
fi | |
} |
#forgive my newb bash skillz | |
find . -iname grails-app | xargs -I {} readlink -f {} | xargs -I {} dirname {} | xargs -I {} svn propset svn:ignore "$(echo -e "*.iml\n*.ipr\n*.iws\n*.launch\n*.prefs\n*.tmproj\n*Db.log\n*Db.properties\n*Db.script\n.classpath\n.hg\n.hgignore\n.idea\n.project\n.settings\nRuleLogFile.log\nbin\nbin-groovy\ndevDB.*\ndevDb.*\nout\nplugin.xml\nprodDb.*\npromotional.log\nstacktrace.log\ntarget\ntarget-eclipse\ntest-output\ntestDb.*\n")" {} |
# install netcat | |
while ! nc -vz localhost 4444; do sleep 1; done |
#!/bin/sh | |
# | |
# From: http://robescriva.com/blog/2009/01/13/git-daemon-init-scripts-on-centos-52/ | |
# Startup/shutdown script for Git Daemon | |
# | |
# Linux chkconfig stuff: | |
# | |
# chkconfig: 345 56 10 | |
# description: Startup/shutdown script for Git Daemon |
-- pardon my noob plsql skills | |
declare | |
val number; | |
begin | |
for i in 1..100 loop | |
select B2B_B2W_ADMIN.STOCKDETAIL_SEQ.nextval into val from dual; | |
end loop; | |
end; | |
-- remember to commit |
# save it as inotifyrun | |
-- | |
#!/bin/sh | |
FORMAT=$(echo -e "\033[1;33m%w%f\033[0m written") | |
"$@" | |
while inotifywait -qre close_write --format "$FORMAT" . | |
do | |
"$@" | |
done | |
-- |
import javax.crypto.spec.SecretKeySpec | |
import javax.crypto.Cipher | |
import org.apache.commons.codec.binary.Base64 | |
def encrypt(encrypt,en_key) { | |
if(encrypt.size() % 8 != 0){ //not a multiple of 8 | |
byte[] padded = new byte[encrypt.length + 8 - (encrypt.length % 8)]; | |
//copy the old array into it |