Skip to content

Instantly share code, notes, and snippets.

View jordanlewis's full-sized avatar
👀
large data banking

Jordan Lewis jordanlewis

👀
large data banking
View GitHub Profile
@jordanlewis
jordanlewis / .block
Created May 21, 2017 17:58 — forked from drzax/.block
Narrative Charts
license: mit
scrolling: true
height: 300
import psycopg2
binary = b'\xff\xd8\xff\xe0\x00\x10'
conn = psycopg2.connect('postgresql://root@localhost:26257/test?sslmode=disable')
with conn as conn, conn.cursor() as c:
c.execute('select %s::BYTEA', (binary, ))
rv, = c.fetchone()
@jordanlewis
jordanlewis / gist:1650650
Created January 21, 2012 01:27 — forked from pcn/gist:1650568
java backtrace trying to get cassandra started with seeds
root@domU-12-31-39-0F-76-61:/home/ubuntu# cat /etc/cassandra/cassandra.yaml
# Cassandra storage config YAML
# NOTE:
# See http://wiki.apache.org/cassandra/StorageConfiguration for
# full explanations of configuration directives
# /NOTE
# The name of the cluster. This is mainly used to prevent machines in
# one logical cluster from joining another.