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
nohup xvfb-run --server-args="-screen 0, 1280x1024x8" java -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /dev/null 2>&1 & |
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
cd /your/profile | |
zip -r profile * | |
base64 profile.zip > profile.zip.b64 |
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
java -Dwebdriver.firefox.profile=selenium -jar lenium-server-standalone-3.0.1.jarport 4444 |
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
var log4js = require('log4js'); | |
var logger = log4js.getLogger(); | |
logger.debug(msg); |
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
@Procedure("test.slowQuery") | |
public void slowQuery(@Name("delay") Number Delay ) throws InterruptedException | |
{ | |
long started = System.currentTimeMillis(); | |
while (System.currentTimeMillis() - started < Delay.intValue()) { | |
Thread.sleep(5); | |
if( transaction.getReasonIfTerminated() != null ){ | |
return; | |
} | |
} |
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
1. Donload JMeter. | |
2. Download the latest versions of libs from here: | |
http://mvnrepository.com/artifact/org.eclipse.jetty.websocket/websocket-server/9.1.1.v20140108 | |
http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-io/9.1.1.v20140108 | |
http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util/9.1.1.v20140108 | |
http://mvnrepository.com/artifact/org.eclipse.jetty.websocket/websocket-api/9.1.1.v20140108 | |
http://mvnrepository.com/artifact/org.eclipse.jetty.websocket/websocket-client/9.1.1.v20140108 | |
http://mvnrepository.com/artifact/org.eclipse.jetty.websocket/websocket-common/9.1.1.v20140108 |
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
# Install golang 1.4 from epel repo which is used for installing golang 1.6 (sudo) | |
yum install golang | |
# Set up paths | |
sudo ln -s /usr/lib/golang/bin/linux_amd64/go /usr/lib/golang/bin | |
export GOROOT_BOOTSTRAP=/usr/lib/golang | |
# Download the golang sources | |
# In the current example the sorces are downloaded to the root folder of a user with the name "go" | |
git clone https://go.googlesource.com/go |
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://golang.org/doc/install/source | |
// == Preparation == | |
// Golang should be installed. Epel repo might be necessary | |
yum install golang | |
// Create a link to golang. Without it installer fails. Sudo might be required | |
ln -s /usr/lib/golang/bin/linux_amd64/go /usr/lib/golang/bin/go |
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
nohup xvfb-run java -jar selenium-server-standalone-2.48.2.jar >/dev/null 2>&1 |
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 commit --amend --author "New Author Name <[email protected]>" | |
// OR | |
git -c user.name="New Author Name" -c [email protected] commit --amend --reset-author |