Skip to content

Instantly share code, notes, and snippets.

@jexp
jexp / install-graphgist.sh
Last active October 22, 2021 01:08
How to deploy a Neo4j Graph-Gist locally to not expose any data
# How to run Neo4j GraphGists locally?
git clone https://github.com/neo4j-contrib/rabbithole
cd rabbithole
mvn clean test-compile
mvn exec:java&
sleep 20
# GraphGists only run in your browser, so in your asciidoc-file use the attribute at the top :neo4j-version: local
@jexp
jexp / bundeslaender.adoc
Last active August 29, 2015 14:03
Neo4j Training GraphGist

Bundesländer in Deutschland

Dieser GraphGist soll die Bundesländer in DE darstellen.

bundeslaender deutschland

Setup

Laden aus CSV Datei

@rvanbruggen
rvanbruggen / access control queries.cql
Last active June 26, 2022 08:54
Identity and Access Management
// What is related, and how
MATCH (a)-[r]->(b)
WHERE labels(a) <> [] AND labels(b) <> []
RETURN DISTINCT head(labels(a)) AS This, type(r) as To, head(labels(b)) AS That
LIMIT 20
//show me NeoTech
match (n:Company {name:"Neo Technology"}) return n
//show me NeoTech (excl Partners)
@technige
technige / boltproxy.py
Created June 15, 2017 08:54
Simple proxy server for the Bolt protocol.
#!/usr/bin/env python
# coding: utf-8
# Copyright 2017, Nigel Small
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0