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
export GOROOT=/usr/local/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
qemu-img convert imageName.vmdk imageName.qcow2 |
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
FROM codenvy/go | |
ENV GOPATH /home/user/application | |
RUN mkdir -p /home/user/application/src | |
ENV CODENVY_APP_BIND_DIR /home/user/application/src | |
VOLUME ["/home/user/application/src", "/dev", "/var/log"] |
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
package main | |
import ( | |
"log/syslog" | |
"log" | |
) | |
func main() { | |
// Initialize syslog |
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 |
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
// 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
# 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
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
@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; | |
} | |
} |