Skip to content

Instantly share code, notes, and snippets.

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 June 17, 2013 13:23
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
sethherr / Attempt 1
Created February 12, 2014 15:01
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 October 21, 2014 01:58
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 August 29, 2015 14:08
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 August 29, 2015 14:09
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 August 29, 2015 14:23
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
sethherr / shortcuts.markdown
Last active June 20, 2017 16:27
Good shortcuts to remember on mac
View shortcuts.markdown

General OSX shortcuts

Space Opens up finder - use it to open or switch applications, or find files
w Close current tab
t Open new tab
Shiftt Open most recently closed tab (Chrome and Sublime and Firefox, not universal)
; Open up settings for the current application
Tab Switch between applications
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]