Skip to content

Instantly share code, notes, and snippets.

View jdrain's full-sized avatar

Jason Drain jdrain

  • Columbia, SC
View GitHub Profile
@jdrain
jdrain / ProposedNeo4jDataModel.md
Last active April 12, 2018 13:51
Newly proposed data model for neo4j to return
View ProposedNeo4jDataModel.md

Note: For some reason, neo4j may return ids as objects with values { low: <int>, high: <int> }. The pertinent value is stored in the low attribute.

{
    title: <string>,
    isbn: [<string>],
    date: <int>,
    id: <int>,
 authors: [
@jdrain
jdrain / DemoDataAddition.md
Last active December 5, 2017 20:41
Data Addition To Docker Containers
View DemoDataAddition.md

First, start the cluster with docker-compose up -d. I commented out the section of docker-compose.yml adding the data acquisition image.

Clone the example repo git clone https://github.com/neo4j-examples/neo4j-movies-template.git

Get the container id with docker ps and copy the csv over with docker cp csv <container_id>:/var/lib/neo4j/csv

Then, get a shell in the docker container with docker exec -it <container_id> /bin/bash

Now, you can execute the commands found on the Project README.

@jdrain
jdrain / .completion
Created April 12, 2017 22:58 — forked from dmadisetti/.completion
Bash script for github management
View .completion
#!/bin/bash
# Make sure you source this in rc
gh(){
local folder="/home/dylan/projects/github" \
archive="/home/dylan/projects/archive" \
regex="[a-zA-Z]+[a-zA-Z0-9_-]*" \
USERNAME="dmadisetti" \
# Deal with projects