Skip to content

Instantly share code, notes, and snippets.

@GregUK
GregUK / keybase.md
Created October 2, 2021 16:57
Keybase proof

Keybase proof

I hereby claim:

  • I am greguk on github.
  • I am gregit (https://keybase.io/gregit) on keybase.
  • I have a public key ASCpzn-BxgJBCiY5QF_FOLs0KC394jbkv0V2spsr2iBv-go

To claim this, I am signing this object:

@GregUK
GregUK / loading_icij_offshore_panama_data_neo4j
Last active May 24, 2016 10:21
ICIJ Panama Papers and Offshore Leaks - Loading into Neo4j
ICIJ Offshore Leaks Database 2016 - Loading into Neo4j
Data is available from: https://offshoreleaks.icij.org/pages/database
#Most of the CSV's arent that clean. Tidy them up to replace , delimiiter with |
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM 'file:///offshore_leaks_csvs/Addresses.csv' AS line
FIELDTERMINATOR '|'
WITH line
import SocketServer
import BaseHTTPServer
import ssl
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler, SimpleXMLRPCDispatcher
from os import path
try:
import fcntl
except ImportError:
fcntl = None