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
var log4js = require('log4js'); | |
var logger = log4js.getLogger(); | |
logger.debug(msg); |
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
java -Dwebdriver.firefox.profile=selenium -jar lenium-server-standalone-3.0.1.jarport 4444 |
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
cd /your/profile | |
zip -r profile * | |
base64 profile.zip > profile.zip.b64 |
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
nohup xvfb-run --server-args="-screen 0, 1280x1024x8" java -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /dev/null 2>&1 & |
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
@Procedure("test.nested") | |
public Stream<NestedReport> testNested() | |
{ | |
ArrayList<NestedReport> res = new ArrayList<>(); | |
NestedReport grandParent = new NestedReport("Grandparent"); | |
NestedReport parent = new NestedReport("Parent"); | |
NestedReport child = new NestedReport("Child"); | |
NestedReport grandchild = new NestedReport("Grandchild"); |
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
package main | |
import( | |
"github.com/jmcvetta/neoism" | |
"fmt" | |
) | |
func main(){ | |
// Connect to the neo4j database with the address provided |
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
{ | |
"columns":[ | |
"Name", | |
"Subreports" | |
], | |
"data":[ | |
{ | |
"row":[ | |
"Grandparent", | |
[ |
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
docker update -m 2G --memory-swap -1 container_id |
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
unwind range(1,1000000) as r | |
match (n) where id(n) = r | |
match (m) where id(m) = toInt(rand()*1000000) | |
create (n)-[:KNOWS]->(m) |
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
// Add index | |
CREATE INDEX ON :Var(value) | |
// Polulate data | |
WITH ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t","u","v","w", "z", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] AS R | |
UNWIND range(0,1000000) AS d | |
WITH R, | |
toInteger(rand()*36) AS i1, | |
toInteger(rand()*36) AS i2, | |
toInteger(rand()*36) AS i3, |