Skip to content

Instantly share code, notes, and snippets.

View if6was9's full-sized avatar

Rob Schoening if6was9

  • Lacework
  • Bay Area, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am if6was9 on github.
  • I am rschoening (https://keybase.io/rschoening) on keybase.
  • I have a public key ASCSf9AzinyNvRQQfXeSUPizeV9Vi7MMKmiivyDv_B0Zrgo

To claim this, I am signing this object:

@if6was9
if6was9 / mirror-soluble-repos.sh
Created March 4, 2021 16:38
mirror-soluble-repos.sh
#!/bin/bash
set -e
mirror_soluble_image() {
IMAGE=$1
TAG=$1
SOURCE_IMAGE=gcr.io/soluble-repo/$1:$2
TARGET_IMAGE=${MIRROR_REPO}/$1:$2

Keybase proof

I hereby claim:

  • I am if6was9 on github.
  • I am if6was9 (https://keybase.io/if6was9) on keybase.
  • I have a public key ASDhGyQJ9wquAj7gXpF2M-dk1GDBPl-0sbeiLYBw9vMqRQo

To claim this, I am signing this object:

AWS Overview

All AWS node labels (think "table name" in SQL terms) have names that start with Aws

Attributes are mapped from API onto nodes in lowerCamelCase. We try to map as mechanically as possible.

All Aws nodes have attributes: account and region and arn.

ObservableOnSubscribe<String> observableOnSubscribe = new ObservableOnSubscribe<String>() {
@Override
public void subscribe(ObservableEmitter<String> emitter) throws Exception {
// This will be called when subscribe() is called
// At this point
System.out.println(Thread.currentThread()+": ObservableOnSubscribe.subscribe() called");
ImmutableList.of("one","two","three").forEach(it->{

Keybase proof

I hereby claim:

  • I am if6was9 on github.
  • I am if6was9 (https://keybase.io/if6was9) on keybase.
  • I have a public key ASBFGamkaGiAoSwO0tl7RtPZ0cliT1FHMa_n53FuxlNuago

To claim this, I am signing this object:

#!/bin/bash
# Start Neo4j in Docker with auth distabled.
# Remove the --env=NEO4j_AUTH=none line if you want password auth.
# Kill the container with "docker kill neo4j"
docker run \
-d --rm \

Keybase proof

I hereby claim:

  • I am if6was9 on github.
  • I am robschoening (https://keybase.io/robschoening) on keybase.
  • I have a public key ASD6XutNzM3HQFgOn0I8q3Z0O-yD-4jEwWErKKqIBMTotgo

To claim this, I am signing this object:

@if6was9
if6was9 / MergeEdge.java
Last active September 13, 2018 03:02
merge edges between vertices
Edge edge = graph.traversal()
.V().hasLabel("Person").has("name","Rob").as("p")
.V().hasLabel("Dog").has("name","Homer").as("d")
.coalesce(
__.inE( "HAS" ).where(__.outV().as("p")) ,
__.addE("HAS").from("p"))
.tryNext().get();
@if6was9
if6was9 / docker-proxy.sh
Created September 7, 2017 04:55
set up a TCP->Unix Domain Proxy
#!/bin/bash
cat <<EOF
In another shell, set the following env var:
export DOCKER_HOST=tcp://localhost:2376
EOF
socat -v -ls TCP-LISTEN:2376,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock