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 / 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
@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)
##################################################################################################################
{
"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
@Nimrod007
Nimrod007 / featureToggle
Last active March 10, 2020 17:41
some feature toggle
{
"active" : true
}
[
{
"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.