Skip to content

Instantly share code, notes, and snippets.

View maoo's full-sized avatar

Maurizio Pillitu maoo

View GitHub Profile
find . -name "*.jar" -exec sh -c 'jar -tf {}|grep -H --label {} 'NodeService.class'' \;
git clean -dxn > dry run, shows what to remove
git clean -dxf > do it
mvn -Dmaven.repo.local=/tmp/m2repo package
find . -name '.svn' | xargs rm -Rf
JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
ps -edaf | grep something_to_grep | awk '{print $2}' | xargs kill -s 9
## First * : privileges
## Second * : DB name
## Third * : Table name
grant * on *.* to 'username'@'localhost' identified by 'password';
flush privileges;
htpasswd2 /var/svn/conf/svnusers simone
route add default gw 192.10.200.252
ifconfig eth0 192.10.200.111 netmask 255.255.255.0 up