Skip to content

Instantly share code, notes, and snippets.

@rednaxelafx
rednaxelafx / CLHSDB session
Created May 5, 2011 07:52
Another demo on primitive type arrays and wrapper type arrays in a Java program running on HotSpot, using SA on a core dump. Env: JDK6u25, x64, -Xmx10m (-server and -XX:+UseCompressedOops are on by default)
$ java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
$ alias -p | grep clhsdb
alias clhsdb='java -classpath .:$JAVA_HOME/lib/sa-jdi.jar sun.jvm.hotspot.CLHSDB'
$ clhsdb
hsdb> help
Available commands:
assert true | false
@myobie
myobie / mountain-lion-brew-setup.markdown
Created February 18, 2012 20:14
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.