Skip to content

Instantly share code, notes, and snippets.

View Nimrod007's full-sized avatar
d2VyZSBoaXJpbmcgYXQgQ29tZXQsIGVtYWlsIGhpcmluZytiYXNlNjRAY29tZXQubWw=

Nimrod Lahav Nimrod007

d2VyZSBoaXJpbmcgYXQgQ29tZXQsIGVtYWlsIGhpcmluZytiYXNlNjRAY29tZXQubWw=
View GitHub Profile
@Nimrod007
Nimrod007 / gist:82c92e4678fc37e1598e
Created February 10, 2015 09:09
gatling pubkey
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 May 17, 2022 13:53
Gatling - running on multiple machines and aggregating the results
#!/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)
##################################################################################################################
@Nimrod007
Nimrod007 / Spray Example SimpleRoutingApp
Created December 17, 2014 19:54
Spray with SimpleRoutingApp
import akka.actor.ActorSystem
import spray.http.MediaTypes._
import spray.routing.SimpleRoutingApp
object LightVersion extends App with SimpleRoutingApp {
implicit val system = ActorSystem("my-system")
startServer(interface = "0.0.0.0", port = 9119) {
path("api") { get { parameters('id.as[String])
.as(Request) { request => { respondWithMediaType(`text/html`) { complete {
@Nimrod007
Nimrod007 / Red-Color
Created July 13, 2014 13:42
Red Color from oref web site example
URL :
http://www.oref.org.il/WarningMessages/alerts.json
response example :
{
"id" : "1405269005749",
"title" : "פיקוד העורף התרעה במרחב ",
"data" : [
"דן 157",
"דן 162",
"דן 155",
@Nimrod007
Nimrod007 / HebrewSwear
Last active November 24, 2023 14:51
Hebrew dictionary for swear/bad words
אגוז

אהבל

אוחצ

אוכל במבה עם מזלג

אוכל חומוס עם כפית

אוכל מצלחות של

אוכל נבטים

אוכלת דגים

אומו

אטומה
@Nimrod007
Nimrod007 / Xvfb-restart-script.sh
Last active July 10, 2022 12:13
Xvfb restart script
echo "restart Xvfb"
kill -9 `ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
sleep 3
nohup Xvfb :10 -ac > /tmp/Xvfb.log 2>&1 &
echo "Xvfb started"
exit