This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -Dincludes specifies that only spring dependencies should be udpated | |
| mvn -U versions:use-latest-versions -Dincludes=org.springframework:* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type f -name 'some-file.xml' -print0 | xargs -0 grep -niH 'something' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # very close to the dpkg -L command except the package does not need to be installed | |
| apt-file list package_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type f | xargs wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://wiki.internet2.edu/confluence/display/CPD/Monitoring+Tomcat+with+JMX | |
| -Dcom.sun.management.jmxremote | |
| -Dcom.sun.management.jmxremote.port=8999 | |
| -Dcom.sun.management.jmxremote.ssl=false | |
| -Dcom.sun.management.jmxremote.authenticate=false | |
| -Djava.rmi.server.hostname=localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://i.stack.imgur.com/whhD1.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find src/main/java/ -type f -exec sed -i 's/SimpleJdbcTemplate/NamedParameterJdbcTemplate/g' {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type d -name .svn | xargs rm -rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Calendar calendar = Calendar.getInstance(); | |
| calendar.setTime(date); | |
| calendar.set(Calendar.HOUR_OF_DAY, 0); | |
| calendar.set(Calendar.MINUTE, 0); | |
| calendar.set(Calendar.SECOND, 0); | |
| calendar.set(Calendar.MILLISECOND, 0); | |
| return calendar.getTime(); |