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 | |
#Updates a keystore with lets encrypt cross signatures | |
[ $# -eq 0 ] && { echo "Usage: $0 <path to keystore>" ; exit 1; } | |
KEYSTORE=$1 | |
wget https://letsencrypt.org/certs/isrgrootx1.pem | |
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der |
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
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - | |
echo 'deb http://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list | |
sudo apt-get update | |
sudo apt-get install neo4j=3.1.1 | |
sudo apt-mark hold neo4j |

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
# Example for a container with '/keycloak' in the name | |
docker logs -f $(docker ps | Select-String /keycloak | % { $_.ToString().Split(" ") | select -first 1}) |
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
version: '3.4' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
environment: | |
#192.168.65.2 is (usually) the docker host, discovered by checking which networks were reachable from a container |
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
module.exports = { | |
url: 'http://google.com', | |
elements: { | |
searchBar: { | |
selector: 'input[type=text]' | |
}, | |
btn: { | |
selector: 'input[type=submit]', | |
} | |
}, |
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
private String printRequestDebug(HttpServletRequest request) { | |
final String divider = "---------------------------------------------------------------------------------------\n"; | |
StringBuilder sb = new StringBuilder(); | |
sb.append(divider); | |
Enumeration<String> headers = request.getHeaderNames(); | |
while (headers.hasMoreElements()) { | |
String headerName = headers.nextElement(); | |
sb.append(String.format("Header[%s]: '%s'\n", headerName, enumerationAsList(request.getHeaders(headerName)))); | |
} | |
sb.append(divider); |
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
2018-10-22 16:46:51.845+0000 ERROR [o.n.b.v.r.ErrorReporter] Client triggered an unexpected error [Neo.DatabaseError.General.UnknownError]: (n,RefSlot(4,true,Any)) (of class scala.Tuple2), reference 6154f67f-8230-4a70-a5bd-a03b09894612. (n,RefSlot(4,true,Any)) (of class scala.Tuple2) | |
scala.MatchError: (n,RefSlot(4,true,Any)) (of class scala.Tuple2) | |
at org.neo4j.cypher.internal.runtime.slotted.SlottedExecutionContext$$anonfun$mergeWith$1.apply(SlottedExecutionContext.scala:214) | |
at org.neo4j.cypher.internal.runtime.slotted.SlottedExecutionContext$$anonfun$mergeWith$1.apply(SlottedExecutionContext.scala:214) | |
at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:130) | |
at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:130) | |
at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:236) | |
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:40) | |
at scala.collection.mutable.HashMap.foreach(HashMa |
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
MATCH jobPath = (job:Job)<-[toJob:GJC_SUBFAMILY_TO_JOB]-(subJobFamily:SubJobFamily)<-[toSubFamily:GJC_JF_TO_SJF]-(jobFamily:JobFamily)<-[toFamily:GJC_CATALOG_TO_FAMILY]-(jobCatalog:JobCatalog) WHERE job.uuid IN ["cac77ef5-1b47-4d1d-996a-d448a8a859b7"] AND ALL( rel IN [toJob, toSubFamily, toFamily] WHERE rel.min - 2 <= 0 AND rel.max - 2 > 0 ) AND (["8f277b6a-44c4-4e72-9aeb-9d0b1ee18a5c"] IS NOT NULL AND jobCatalog.uuid IN ["8f277b6a-44c4-4e72-9aeb-9d0b1ee18a5c"]) | |
OPTIONAL MATCH jobTypePath = (job)-[jobToType:GJC_JOB_TO_TYPE]->(jobType:JobType)-[jobTypeToPayload:GJC_DETAIL_DEFINITION]->(jobTypePayload:JobCatalogLocalizedPayload) WHERE ALL( rel IN [jobToType] WHERE rel.min - 2 <= 0 AND rel.max - 2 > 0 ) | |
OPTIONAL MATCH reportsToPath = (job)-[reportsTo:GJC_JOB_REPORTS_TO]->(jobToReport:Job)<-[jobToReportToCatalog:GJC_SUBFAMILY_TO_JOB|GJC_JF_TO_SJF|GJC_CATALOG_TO_FAMILY*1..3]-(jobCatalog) |
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
2018-11-06 11:17:38.336 [http-nio-8080-exec-2] T:DEFAULT_TENANT INFO o.n.o.d.bolt.request.BoltRequest - Request: MATCH subJobFamilyPath=(subJobFamily:SubJobFamily)-[toDescriptions:GJC_CATEGORY_TO_DESCRIPTION]->(subDescription:DescriptionElement)-[subToPayload]->(subPayload:JobCatalogLocalizedPayload) WHERE subJobFamily.uuid IN {subJobFamilyIds} AND subToPayload.language IN {languages} AND ALL( rel IN [toDescriptions, subToPayload] WHERE rel.min - {revision} <= 0 AND rel.max - {revision} > 0 )OPTIONAL MATCH subFamToDetail=(subJobFamily)-[toDetails:GJC_CATEGORY_TO_DETAIL]->(detail:JobCategoryDetail)-[detailToDefinition:GJC_DETAIL_TO_DEFINITION]->(detailDefinition:JobCategoryDetailDefinition)-[detailDefinitionToPayload:GJC_DETAIL_DEFINITION]->(detailDefinitionPayload:JobCatalogLocalizedPayload) WHERE detailDefinitionToPayload.language IN (COALESCE({languages},[]) + detailDefinition.defaultLanguage) AND ALL( rel IN [t |
OlderNewer