Skip to content

Instantly share code, notes, and snippets.

View laszlomiklosik's full-sized avatar

Laszlo Miklosik laszlomiklosik

View GitHub Profile
@laszlomiklosik
laszlomiklosik / Maven help plugin usage example
Created February 20, 2012 07:26
Get maven plugin parameter description from command line
# just use mvn:describe -Ddetail and specify the name of the plugin, see example below
mvn help:describe -Dplugin=org.jacoco:jacoco-maven-plugin -Ddetail
@laszlomiklosik
laszlomiklosik / Listing the Java classpath
Created November 22, 2011 08:02
Listing the Java classpath related info
LOGGER.info("Classpath: '" + System.getProperty( "java.class.path" ) + "'" );
LOGGER.info("Ext dirs: '" + System.getProperty( "java.ext.dirs" ) + "'" );
LOGGER.info("Library path: '" + System.getProperty( "java.library.path" ) + "'" );
LOGGER.info("Path separator: '" + System.getProperty( "path.separator" ) + "'" );
@laszlomiklosik
laszlomiklosik / gist:1122126
Created August 3, 2011 07:53
Import complete directory in SSN
svn import https://svnserver/svn/repo_name -m "imported code into SVN" > ~/svn_import.log
# you need first to delete the metadata if you copied the code from another SVN repository
@laszlomiklosik
laszlomiklosik / linux_restart_x.txt
Created June 22, 2011 18:02
Linux restart X from command line
sudo /etc/init.d/gdm restart
@laszlomiklosik
laszlomiklosik / linux_system_monitor_commandline.txt
Created June 22, 2011 18:01
Linux command line system monitoring
# See info on processor (available, used and generic info)
cat /proc/cpuinfo
# See info on memory (available, used and generic info)
cat /proc/meminfo
# See info on HDD
df -h
# and of course kind of task manager
@laszlomiklosik
laszlomiklosik / recursively_delete_svn_metadata.txt
Created June 22, 2011 17:35
Recursively delete SVN metadata
rm -rf `find . -type d -name .svn`