Skip to content

Instantly share code, notes, and snippets.

sethherr / Attempt 1
Created Feb 12, 2014
Trying to load Viddy data dump...
View Attempt 1
$ pg_restore --verbose --clean --no-acl --no-owner -d viddy latest.dump
pg_restore: connecting to database for restore
pg_restore: dropping MATERIALIZED VIEW DATA station_additions
pg_restore: dropping MATERIALIZED VIEW DATA current_stations
pg_restore: dropping FK CONSTRAINT station_updates_execution_id_fkey
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2742; 2606 16432 FK CONSTRAINT station_updates_execution_id_fkey ufasaucshs5ksb
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.station_updates" does not exist
Command was: ALTER TABLE ONLY public.station_updates DROP CONSTRAINT station_updates_execution_id_fkey;
sethherr /
Created Oct 21, 2014
Parse some JSON for the CWW
# This relies on chicago-classifications.json being in the
# same folder as this file
# It will then make a .tsv from the JSON stream
# Kickass, Mr. Fidino and @sethherr
import json
cww_json = open( "chicago-classifications.json", "r" )
sethherr / portland.html
Last active Aug 29, 2015
Portland bike thefts
View portland.html
<!DOCTYPE html>
<title>Data Layer: Styling</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
html, body, #map-canvas {
height: 100%;
margin: 0px;
sethherr /
Last active Aug 29, 2015
Bike Index strategy for python flask social
Some information about OAuth on the Bike Index available, srys, still under development
from social.backends.oauth import BaseOAuth2
class BikeIndexOAuth2(BaseOAuth2):
name = 'bikeindex'
ID_KEY = 'id'
sethherr / csv-manufacturers.csv
Last active Aug 29, 2015
Bicycling related manufacturers for Soulheart (from Bike Index)
View csv-manufacturers.csv
name website frame_maker open_year close_year logo_url
24seven true
3G true
3rd Eye
3rensho true
6KU true
9 zero 7 true
View gist:2973831
WebhooksController parse stripe webhook should parse the data from the post
Failure/Error: post 'stripe', @example_success
757: unexpected token at '&data%5Bobject%5D%5Bamount%5D=100&data%5Bobject%5D%5Bamo
sethherr / gist:5796827
Created Jun 17, 2013
Error on cap deploy
View gist:5796827
RAILS_ENV=production be cap deploy
triggering load callbacks
* 2013-06-17 09:10:19 executing `production'
triggering start callbacks for `deploy'
* 2013-06-17 09:10:19 executing `multistage:ensure'
* 2013-06-17 09:10:19 executing `deploy'
* 2013-06-17 09:10:19 executing `deploy:update'
** transaction: start
* 2013-06-17 09:10:19 executing `deploy:update_code'
updating the cached checkout on all servers
View error
keymaps/keymap_145158258498reactor.c: In function 'matrix_init_user':
keymaps/keymap_145158258498reactor.c:37:1: warning: control reaches end of non-void function [-Wreturn-type]
keymaps/keymap_145158258498reactor.c: In function 'matrix_scan_user':
keymaps/keymap_145158258498reactor.c:61:1: warning: control reaches end of non-void function [-Wreturn-type]
ergodox_ez.c: In function 'matrix_init_user':
ergodox_ez.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
View keylist.tsv
Key Display Description Category c definition JS Keycode
A Alphabet KC_A 65
B Alphabet KC_B 66
C Alphabet KC_C 67
D Alphabet KC_D 68
E Alphabet KC_E 69
F Alphabet KC_F 70
G Alphabet KC_G 71
H Alphabet KC_H 72
I Alphabet KC_I 73

Keybase proof

I hereby claim:

  • I am sethherr on github.
  • I am sethherr ( on keybase.
  • I have a public key ASCaHk980P7DhH3J5jIHPYH5WtDOXk6LGrpQ5a__n3pvkAo

To claim this, I am signing this object: