Skip to content

Instantly share code, notes, and snippets.

View voutilad's full-sized avatar
🥸

Dave Voutila voutilad

🥸
View GitHub Profile
@voutilad
voutilad / debug.go
Created January 26, 2021 00:16
Debugging a Neo4j query issue
package main
import (
"fmt"
"os"
"github.com/neo4j/neo4j-go-driver/v4/neo4j"
)
// Run the given cypher and print the results
@voutilad
voutilad / remote_import.py
Created January 13, 2022 13:22
Example remote bulk import with neo4j-arrow
#!/bin/env python
## When pointed at an import directory (see https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin/neo4j-admin-import/)
## this script identifies the graph entities and builds the stream of nodes and relationships.
import neo4j_arrow as na
import pyimport as pi # see https://github.com/neo4j-field/neo4j-arrow/blob/bulk-import/src/python/pyimport.py
from time import time
from sys import argv, exit
if __name__ != '__main__':
@voutilad
voutilad / aurads-pyarrow-test.ipynb
Created October 12, 2022 15:38
AuraDS PyArrow Test.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@voutilad
voutilad / fun.c
Created December 22, 2022 19:12
Example of sharing a page between processes after fork+exec.
/*
* Copyright (c) 2022 Dave Voutila <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR