This file contains 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
#!/bin/bash | |
end="$((SECONDS+10))" | |
while true; do | |
[[ "200" = "$(curl --silent --write-out %{http_code} --output /dev/null http://localhost:7474)" ]] && break | |
[[ "${SECONDS}" -ge "${end}" ]] && exit 1 | |
sleep 1 | |
done |
Answer to this Stackoverflow Question
This GraphGist answers a Stackoverflow question.
This file contains 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
#!/bin/bash | |
# tiny script to extract the logs of the latest startup sequence in a Neo4j instance | |
# | |
if (( $# == 0 )); then | |
echo "call me: $0 <path_to_messages.log>" | |
exit 1 | |
fi |
This file contains 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
library('RCurl') | |
library('RJSONIO') | |
query <- function(querystring) { | |
h = basicTextGatherer() | |
curlPerform(url="http://localhost:7474/db/data/cypher", | |
postfields=paste('query',curlEscape(querystring), sep='='), | |
writefunction = h$update, | |
verbose = FALSE | |
) |
You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
NewerOlder