Skip to content

Instantly share code, notes, and snippets.

View jstenquist's full-sized avatar

Jared Stenquist jstenquist

View GitHub Profile
@jstenquist
jstenquist / export-from-graphene.py
Created January 19, 2023 18:35
Neo4j - Database export script for Graphene
from neo4j import GraphDatabase
# Connect to the Neo4j database
driver = GraphDatabase.driver("neo4j+s://XXXXXXXXXX.graphenedb.com:24786", auth=("neo4j", "PASSWORD"))
session = driver.session()
# Export the database to a file in GraphML format
with open("export.graphml", "w") as file:
result = session.run("CALL apoc.export.graphml.query('MATCH (n) RETURN n', '', {})")
file.write(result.single()[0])
# Type the commands below in terminal and press Enter:
Install Homebrew from http://brew.sh
brew update
brew install python
git clone -b apple-silicon-mps-support https://github.com/bfirsh/stable-diffusion.git

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jstenquist
jstenquist / gist:4287567
Created December 14, 2012 18:38
Altering a table using OpenArk Tools
oak-online-alter-table --host=192.168.1.1 --user=myuser --pass=mypass --database=db_phonebook --table=contacts --alter="CHANGE first_name first_name varchar2(100) not null"
@jstenquist
jstenquist / gist:4287537
Created December 14, 2012 18:34
Standard MySQL Alter table process
// connect to database
mysql -h 192.168.1.1 -u myuser -p'mypass' db_phonebook
// alter the table
ALTER TABLE contacts MODIFY first_name varchar2(100) not null;
@jstenquist
jstenquist / gist:4279328
Created December 13, 2012 20:02
Installing OpenArk MySQL Tools on Ubuntu
# Install python library
sudo apt-get install python-mysqldb
# Install .deb package
wget http://openarkkit.googlecode.com/files/openark-kit-180-1.deb
sudo dpkg -i openark*