Last active
July 15, 2019 14:01
-
-
Save dahernan/890745 to your computer and use it in GitHub Desktop.
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
Bash funtions | |
function psgrep() { ps aux | grep -v grep | grep "$@" -i --color=auto; } | |
function fname() { find . -iname "*$@*"; } | |
Who is using the port 25 | |
$ lsof -i :25 | |
Ports that process is using | |
$ lsof -p 52808|grep TCP | |
Remove .svn recursive | |
find . -name .svn -print0 | xargs -0 rm -rf | |
# Find files recursive and count the lines | |
$ find . -name *html* -print0 | xargs -0 wc -l | |
Run jmeter from the command line: | |
jmeter -Jgroup1.threads=50 -n -t typeahead.jmx -l typeahead.jtl | |
${__property(group1.threads)} | |
Maven Deploy file | |
mvn deploy:deploy-file -Dfile=activemq-ra-4.0.1.jar -DpomFile=activemq-ra-4.0.1.pom -DrepositoryId=3rd-parties -Durl=scp://fileserver/opt/maven-repos/external_free | |
mvn deploy:deploy-file -Dfile=activemq-ra-4.0.1.jar -DpomFile=activemq-ra-4.0.1.pom -DrepositoryId=3rd-parties -Durl=scp://fileserver/home/maven/proximity/ext-free/storage | |
mvn deploy:deploy-file -Dfile=activemq-ra-4.0.1.jar -DpomFile=activemq-ra-4.0.1.pom -DrepositoryId=inhouse.releases -Durl=dav:http://fileserver:8082/archiva/repository/inhouse.releases | |
-DgeneratePom=true | |
-DgroupId=org.some.group | |
-DartifactId=your-artifact | |
-Dversion=1.0 | |
Upload source code and Javadoc | |
mvn -Dmaven.test.skip=true -Ddeploy.ear.skip=true clean javadoc:jar source:jar deploy | |
Install the pom only | |
mvn -N install | |
mvn -N deploy | |
Run only one test | |
mvn test -Dtest=ClassName | |
Download sources with eclipse | |
mvn -Declipse.downloadSources=true eclipse:eclipse | |
jmeter -Jgroup1.threads=50 -n -t mifichero.jmx | |
${__property(group1.threads)} | |
Change JVM in Ubuntu | |
$ sudo update-alternatives --config java | |
$ sudo update-alternatives --config javac | |
$ sudo update-alternatives --config jar | |
Overwrite session in remote desktop | |
start > run > mstsc /console | |
#!/usr/bin/env bash | |
trap 'kill 0' SIGTERM | |
server -conf a.cfg $* | sed -e "s/^/[process1] /g" & | |
server -conf b.cfg $* | sed -e "s/^/[process2] /g" & | |
# ... | |
wait | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment