Skip to content

Instantly share code, notes, and snippets.

View metrics.json
[
{
"id": "someId",
"xData": [
"1",
"2",
"3"
],
"yData": [
"4",
View groups.json
[
{
"id": "someId",
"title": "some title",
"from": "1/1/2012",
"to": "26/1/2012",
"added": "2/2/2012",
"members": [
"some1",
"another1"
View metaData.json
{
"loading": [
"blabla",
"blablalba"
],
"metrics": [
{
"id": 123,
"title": "some title",
"emojiValue": "someValue",
@Nimrod007
Nimrod007 / HTTP.md
Last active Aug 29, 2015
HTTP server training kit
View HTTP.md

#HTTP:

  • this should take 2 hours approx.

###Intro:

  • Define HTTP (wikipedia):

"The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems.

@Nimrod007
Nimrod007 / gatling-workshop
Last active Aug 29, 2015
gatling workshop
View gatling-workshop
Pause:
Fixed pause duration:
pause(duration: Duration)
Random pause duration:
pause(min: Duration, max: Duration)
Example:
.exec(http("get some page").get("/some.php")).pause(1 seconds, 10 seconds)
Wiki:
http://gatling.io/docs/2.0.0-RC2/general/scenario.html
@Nimrod007
Nimrod007 / relicErrors.php
Last active Aug 29, 2015
Get error rate from new relic and send to LittleBits CloudBit PHP
View relicErrors.php
<?php
date_default_timezone_set('Asia/Jerusalem');
echo "New Relic + Little Bits<br>";
$appId = YOUR-NEWRELIC-APP-ID;
$timePicker = 30; //get last 30 minutes error rate from newrelic
$relicKey = 'YOUR-RELIC-JEY';
$deviceId = 'YOUR-CLOUD-BIT-DEVICE-ID';
$cloudBitKey = 'YOUR-CLOUD-BIT-KEY';
@Nimrod007
Nimrod007 / featureToggle
Last active Aug 29, 2015
some feature toggle
View featureToggle
{
"active" : true
}
@Nimrod007
Nimrod007 / gatling-packer-image
Last active Aug 29, 2015
gatling packer digitalocean + amazon example
View gatling-packer-image
{
"builders": [
{
"type": "digitalocean",
"api_token": "XXXX",
"image": "ubuntu-14-04-x64",
"region" : "nyc3",
"size" : "1gb",
"droplet_name" : "gatlingNode"
},
View gist:82c92e4678fc37e1598e
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjoWP+tTgluKE/6s7aRCsXAzBgAxmeZ9D2dwuXT45cgnTDrQeqocafplf1YQ3zUe6bjDtctCq+ZBmp6RDtWmBhSahBYueDAR7KrX/7teM5Bs8ilVojLBCnCRGEURU0LuY6RxulVUgTzYaQYOzXTpuOH71uyyyDq3JKSBLA3WNRGHBigJGznZm3sA1s0CfTs9CAhPEvsgCGVq2xCTYj37q9DdBW93GY+XqXlY9zj0oo+Qy3DDCSBg/m5S7+P/EooTEiHNBZRbd/FvSFG7s8Nbw9oCPDKnk3Kv8nQYtmI5IPmSRgf3XHL7BJN+XyE4RltMMh/rPWxLVA5puMl6y0FnZP Nimrod_Lahav@NimMac.local
@Nimrod007
Nimrod007 / gatlingClusterRun.sh
Last active Apr 1, 2019
Gatling - running on multiple machines and aggregating the results
View gatlingClusterRun.sh
#!/bin/bash
##################################################################################################################
#Gatling scale out/cluster run script:
#Before running this script some assumptions are made:
#1) Public keys were exchange inorder to ssh with no password promot (ssh-copy-id on all remotes)
#2) Check read/write permissions on all folders declared in this script.
#3) Gatling installation (GATLING_HOME variable) is the same on all hosts
#4) Assuming all hosts has the same user name (if not change in script)
##################################################################################################################
You can’t perform that action at this time.