Setup the server:
iperf -s
RUN apt-get update && apt-get install -y wget | |
RUN wget https://github.com/jwilder/dockerize/releases/download/v0.1.0/dockerize-linux-amd64-v0.1.0.tar.gz | |
RUN tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.1.0.tar.gz |
import bucky from 'bucky'; | |
class HelloApp extends React.Component { | |
constructor(props) { | |
super(props); | |
bucky.send('helloapp.constructor', 2432.43434); | |
this.state = { | |
filterType: 'all' | |
}; |
package au.com.onegeek.nginxperf | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class Nginx extends Simulation { | |
val httpConf = http | |
.baseURL("http://api.foo.com") |
#!/usr/bin/env bash | |
set -e | |
abort() | |
{ | |
echo "Docker: an error occurred. Exiting..." >&2 | |
exit 1 | |
} | |
script_path_required() |
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-ovf", | |
"communicator":"winrm", | |
"name":"win2008updates", | |
"source_path": "/Users/mfellows/Downloads/output-basebox-vbox/talentsearch-api-1.0.0.ovf", | |
"headless": false, | |
"boot_wait": "1m", | |
"winrm_username": "vagrant", |
{ | |
"builders": [ { | |
"type": "virtualbox-windows-ovf", | |
"name": "vagrantbox", | |
"source_path": "/Users/mfellows/Downloads//output-virtualbox-iso/packer-virtualbox-iso-1417096689.ovf", | |
"guest_additions_mode": "disable", | |
"headless":false, | |
"boot_wait":"15s", | |
"winrm_username": "vagrant", | |
"winrm_password": "vagrant", |
terraform destroy -var access_key=$AWS_ACCESS_KEY_ID -var secret_key=$AWS_SECRET_ACCESS_KEY --var ami_id=ami-12345678 |
$EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
$xml = [xml](get-content $EC2SettingsFile) | |
$xmlElement = $xml.get_DocumentElement() | |
foreach ($element in $xmlElement.Property) | |
{ | |
if ($element.Name -eq "AutoSysprep") | |
{ | |
$element.Value="Yes" | |
} |
#!/bin/bash | |
INSTANCE_ID=$1 | |
IP=$(aws ec2 --region $AWS_REGION describe-instances --instance-id $INSTANCE_ID | jq -r .Reservations[0].Instances[0].PrivateIpAddress) | |
KEYPAIR_NAME=$(aws ec2 --region $AWS_REGION describe-instances --instance-id $INSTANCE_ID | jq -r .Reservations[0].Instances[0].KeyName) | |
ssh -i ~/.ssh/$KEYPAIR_NAME.pem "ec2-user@$IP" |