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
| #!/bin/bash | |
| set -uxe | |
| # Reads the ssm path and echos out the parameters in the form | |
| # export NAME=some-value | |
| readonly path=$1 | |
| exec aws --region us-east-1 ssm get-parameters-by-path --no-paginate --path $path --with-decryption --query Parameters | \ | |
| jq -r 'map("\(.Name | sub("'$path'";""))=\(.Value)") | join("\n")' | \ |
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
| // #loljavascript | |
| var settings = { | |
| cacheExpiresSec: 10, | |
| extraParams: "&extraParams=your-id-here", // enter your id here | |
| retry: { | |
| factor: 2, | |
| max: 5, | |
| maxRetries: 5, | |
| }, |
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
| #! /bin/bash | |
| set -uxe | |
| # Runs a redis instance, and connects via redis-cli | |
| docker stop redis-playground || true | |
| docker rm redis-playground || true | |
| docker run --name redis-playground -d redis | |
| exec docker run -it --link redis-playground:redis --rm redis redis-cli -h redis -p 6379 |
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
| // Copy JVM ssl settings to be used by gatling | |
| val systemProps = new SystemProperties | |
| javaOptions in Runtime ++= Seq( | |
| mirrorProperty("javax.net.ssl.trustStore", "gatling.http.ssl.trustStore.file"), | |
| mirrorProperty("javax.net.ssl.trustStorePassword", "gatling.http.ssl.trustStore.password"), | |
| mirrorProperty("javax.net.ssl.keyStore", "gatling.http.ssl.keyStore.file"), | |
| mirrorProperty("javax.net.ssl.keyStoreType", "gatling.http.ssl.keyStore.type"), | |
| mirrorProperty("javax.net.ssl.keyStorePassword", "gatling.http.ssl.keyStore.password") | |
| ).flatten |
NewerOlder