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 ps --format "table {{.ID}}\t{{.Names}}" |
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
atom-text-editor::shadow .spell-check-misspelling .region { | |
border-bottom: 1px dotted #659C6B; | |
} |
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
find -name \* -print0 | xargs -0 zgrep "82mp5a3o4fk1qsha0f9l" |
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
$ telnet kafka.brandur.org 9092 | |
Trying 10.100.15.15... | |
Connected to kafka.brandur.org. | |
Escape character is '^]'. |
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, |
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
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
{ | |
"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
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
@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"); |
NewerOlder