referential treatment
Notes and reference on various subjects.
Wednesday, November 12, 2014
Find a specific class by classname in a directory or directories of jars
find . -name '*.jar' | xargs -I {} jar tvf {} | grep ProviderImpl
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"
Saturday, December 21, 2013
Wednesday, December 11, 2013
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);
}
}
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
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
Subscribe to:
Posts (Atom)