Skip to content

Instantly share code, notes, and snippets.

View taseroth's full-sized avatar
🎯
get some work done

Bert Radke taseroth

🎯
get some work done
View GitHub Profile

Keybase proof

I hereby claim:

  • I am taseroth on github.
  • I am bertradke (https://keybase.io/bertradke) on keybase.
  • I have a public key ASDfZcjuZ4UrOHVweNGIZusA3lGjpyAia-1Az28bqoDhgQo

To claim this, I am signing this object:

@taseroth
taseroth / AgentRepository.java
Created December 11, 2018 20:14
excerpt from the IngressDB to show some of the queries used as wished in reaction to https://blog.faboo.org/2018/12/ingressdb-neo4j/
package org.faboo.ingressdb.repository;
import java.util.List;
import java.util.Map;
import org.faboo.ingressdb.domain.Fraction;
import org.faboo.ingressdb.domain.database.Agent;
import org.faboo.ingressdb.domain.database.Portal;
import org.faboo.ingressdb.domain.database.PortalAttack;
import org.springframework.data.domain.Page;
{
"Description": "Neo4j on AWS - creates a variable number of EC2 Ubuntu machines, a VPC, elastic IP addresses, and deploys the Neo4j Graph Database cluster on it. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"AWSTemplateFormatVersion": "2010-09-09",
"Mappings": {
"AWSRegionArch2AMI": {
"ap-northeast-1": {
"64": "ami-0acf0165a71d22757"
},
"ap-south-1": {
"64": "ami-055706abe4289e35d"
@taseroth
taseroth / datastore-overview.cypher
Created July 19, 2021 10:05
data store overview
CALL db.labels() YIELD label
CALL apoc.cypher.run('MATCH (:`'+label+'`) RETURN count(*) as count',{}) YIELD value
RETURN "(:"+ label + ")" as type, apoc.number.format(value.count) as cnt order by value.count desc
UNION
CALL db.relationshipTypes() YIELD relationshipType as type
CALL apoc.cypher.run('MATCH ()-[:`'+type+'`]->() RETURN count(*) as count',{}) YIELD value
RETURN "[" + type + "]" as type, apoc.number.format(value.count) as cnt order by value.count desc