Skip to content

Instantly share code, notes, and snippets.

View Nimrod007's full-sized avatar
d2VyZSBoaXJpbmcgYXQgQ29tZXQsIGVtYWlsIGhpcmluZytiYXNlNjRAY29tZXQubWw=

Nimrod Lahav Nimrod007

d2VyZSBoaXJpbmcgYXQgQ29tZXQsIGVtYWlsIGhpcmluZytiYXNlNjRAY29tZXQubWw=
View GitHub Profile
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.github.com/Nimrod007/92b74c2a18580514860431e519efcb42"
}
word count
UNK 286363
the 1061396
of 593677
and 416629
one 411764
in 372201
a 325873
to 316376
zero 264975
[
{
"id": "someId",
"xData": [
"1",
"2",
"3"
],
"yData": [
"4",
[
{
"id": "someId",
"title": "some title",
"from": "1/1/2012",
"to": "26/1/2012",
"added": "2/2/2012",
"members": [
"some1",
"another1"
{
"loading": [
"blabla",
"blablalba"
],
"metrics": [
{
"id": 123,
"title": "some title",
"emojiValue": "someValue",
@Nimrod007
Nimrod007 / HTTP.md
Last active August 29, 2015 14:22
HTTP server training kit

#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 August 29, 2015 14:19
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 August 29, 2015 14:17
Get error rate from new relic and send to LittleBits CloudBit 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 March 10, 2020 17:41
some feature toggle
{
"active" : true
}
@Nimrod007
Nimrod007 / gatling-packer-image
Last active August 29, 2015 14:15
gatling packer digitalocean + amazon example
{
"builders": [
{
"type": "digitalocean",
"api_token": "XXXX",
"image": "ubuntu-14-04-x64",
"region" : "nyc3",
"size" : "1gb",
"droplet_name" : "gatlingNode"
},