Wednesday, January 22, 2014

debug opts

export JAVA_OPTS="-Xrunjdwp:transport=dt_socket,address=4040,server=y,suspend=n -Xms1536m -Xmx1536m -XX:PermSize=1024m -XX:MaxPermSize=2048m"

Tuesday, December 24, 2013

Saturday, December 21, 2013

~/apps/jdk1.7.0_45/bin$ ./java
bash: ./java: No such file or directory
sudo apt-get install libc6-i386

Original: http://stackoverflow.com/questions/9081962/java-is-installed-in-listing-but-execution-produces-java-no-such-file-or-d

Wednesday, December 11, 2013

UTC Conversion Chart


Source: http://www.scc-ares-races.org/generalinfo/utcchart.html

Load page in default browser - java

public class LD {


public static void main(String[] args) throws Exception {

final java.net.URI uri = new java.net.URI("http://www.google.com");
java.awt.Desktop.getDesktop().browse(uri);

}
}

Tuesday, December 10, 2013

sshfs

sshfs -p #### $username@$hostname:$hostdir $local_mnt

diskutil unmount $local_mnt
Unmount failed for $local_mnt

diskutil unmount force $local_mnt
Unmount successful for $local_mnt

$ ssh $username@$username 'bash -s' < run_me_on_host.sh