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
| for i in {1..10};do curl -s -w "%{time_total}\n" -o /dev/null https://www.google.com/; done |
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
| curl http://apache.ip-guide.com/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz > /home/centos/apache-maven-3.5.0-bin.tar.gz | |
| tar -xvzf /home/centos/apache-maven-3.5.0-bin.tar.gz | |
| ln -s /home/centos/apache-maven-3.5.0 /home/centos/maven |
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
| Thread Pool Size = RPS * <max response time> / 1000 |
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
| # Remote > Local file | |
| scp [email protected]:~/file.log ~/Downloads/ | |
| # Local > Remote folder | |
| scp -r ~/Downloads/folder [email protected]:/home/usernm/folder |
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
| jar xf myfile.jar |
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
| docker build --no-cache=true -t myimage -f myimage . |
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
| # Step 1 - install java 1.8 | |
| yum install java-1.8.0-openjdk.x86_64 | |
| # Step 2 - install jmeter 3.2 | |
| curl https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-3.2.tgz > $HOME/apache-jmeter-3.2.tgz | |
| tar -xvzf $HOME/apache-jmeter-3.2.tgz | |
| ln -s $HOME/apache-jmeter-3.2 $HOME/jmeter | |
| # Step 3 - add to your path in ~/.bashrc | |
| export JMETER_HOME=$HOME/jmeter |
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
| sudo defaults write /Library/Preferences/org.jenkins-ci heapSize 1024M | |
| sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist | |
| sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist |
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
| git reset --hard [commit uuid] | |
| git push -f origin master |
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
| #!/usr/bin/python | |
| """Startup script.""" | |
| import os | |
| from subprocess import check_output | |
| DRIVE_PARENT = '/Users/myusername/Shares' |