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
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
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
# 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
-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
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
# -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
http://recruitloop.com/blog/hiring-hacks-for-startups/ |
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://bigocheatsheet.com/ |
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
# deploy under "path" context path | |
curl --upload-file appplication-0.1-1.war "http://tomcat:tomcat@localhost:8080/manager/deploy?path=/application-0.1-1 | |
# undeploy | |
curl "http://tomcat:tomcat@localhost:8080/manager/undeploy?path=/application-0.1-1" | |
# ! tomcat7 uses /manager/text/undeploy and /manager/text/deploy paths | |
# tomcat6-admin (debian) or tomcat6-admin-webapps (rhel) has to be installed | |
# tomcat-users.xml has to be setup with user that has admin, manager and manager-script roles |