Skip to content

Instantly share code, notes, and snippets.

View jeremyjbowers's full-sized avatar

Jeremy Bowers jeremyjbowers

View GitHub Profile
@jeremyjbowers
jeremyjbowers / README.md
Last active September 6, 2015 15:49
A nasty scraping chore for Roberto Rocha from NICAR-L.

SCRAPER

  • The requirements is just everything in my dev virtualenv, most of which probably isn't actually required.
  • This worked for me on a Mac?
@jeremyjbowers
jeremyjbowers / bbq.csv
Created July 21, 2015 19:08
Best NC barbecue places.
name address city zip
Allen & Son Barbecue 6203 Millhouse Rd Chapel Hill 27516
Lexington Barbecue 100 Smokehouse Ln Lexington 27295
College Bar-B-Que 117 Statesville Blvd Salisbury 28144
The Pit 328 W Davie St Raleigh 27601
Clyde Cooper's BBQ 327 S Wilmington St Raleigh 27601
Hillsborough BBQ 236 S. Nash St Hillsborough 27278

Keybase proof

I hereby claim:

  • I am jeremyjbowers on github.
  • I am jeremyjbowers (https://keybase.io/jeremyjbowers) on keybase.
  • I have a public key whose fingerprint is 5258 4371 7F38 F603 1944 8C01 4DA9 F518 9553 2398

To claim this, I am signing this object:

@jeremyjbowers
jeremyjbowers / elasticsearch_setup.sh
Created June 9, 2015 02:25
Getting ES running is hard. Here are some notes in the form of shell scripts.
apt-get update
apt-get -y upgrade
apt-get -y install openjdk-7-jre python python-pip python2.7-dev python2.7 git nginx-full varnish
cd /tmp
sudo mkfs.ext4 /dev/xvdb
sudo mount /mnt
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.deb
dpkg -i elasticsearch-1.4.2.deb
mkdir -p /mnt/elasticsearch/data /mnt/elasticsearch/logs
chown -R elasticsearch:elasticsearch /mnt/elasticsearch
@jeremyjbowers
jeremyjbowers / cornsplosion.md
Last active August 29, 2015 14:21
The cornsplosion cookie is a mix of Christina Tosi's corn cookies and Thomas Keller's Nutter Butters.
@jeremyjbowers
jeremyjbowers / fix_ur_postgres.sh
Created February 11, 2015 16:32
A quickie shell script for fixing your Postgres installation on a Mac when migrating from 9.3.5 to 9.4.1 via homebrew.
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
initdb /usr/local/var/postgres9.4 -E utf8
pg_upgrade -v \
-d /usr/local/var/postgres \
-D /usr/local/var/postgres9.4 \
-b /usr/local/Cellar/postgresql/9.3.5_1/bin/ \
-B /usr/local/Cellar/postgresql/9.4.1/bin/
mv /usr/local/var/postgres /usr/local/var/postgres9.3
mv /usr/local/var/postgres9.4 /usr/local/var/postgres
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@jeremyjbowers
jeremyjbowers / wines.md
Last active August 29, 2015 14:15
My favorite wines, in no particular order
  • Alberto Tedeschi, Pignoletto, "Spungola Bellaria", White, Emilia-Romagna, Italy
  • Fondo Antico, Grillo, "Baccadoro", Dessert, Sicily, Italy
  • Jeff Sowells, Semillon mix, Topaz "DLX", Dessert, Napa, United States
  • Arger-Martucchi, Semillon mix, "Dulcinea", Dessert, Napa, United States
  • COS, Insolia/Grecanico, "Rami", White, Sicily, Italy
  • Arianna Occhipinti, Nero d'Avola/Frappato, "SP68 Rosso", Red, Sicily, Italy
  • Arianna Occhipinti, Albanello/Zibibo, "SP68 Bianco", White, Sicily, Italy
  • Giulio Armani, Malvasia di Candia/Ortrugo/Marsanne, "Dinavolino", Orange, Emilia-Romagna, Italy
  • Giulio Armani, Malvasia di Candia/Ortrugo/Marsanne, "Dinavolo", Orange, Emilia-Romagna, Italy
  • Giulio Armani, Malvasia di Candia/Ortrugo/Marsanne, "Dinavolo SEI", Orange, Emilia-Romagna, Italy
@jeremyjbowers
jeremyjbowers / twenty_rules.md
Last active August 29, 2015 14:12
Twenty iPad rules from NuevoDads

Our daughter received an ipad last year and here is what we gave her to read and sign. I found it somewhere online and made some modifications.

  • It is our phone and ipad. We set the rules.
  • We will always know the password.
  • If it rings, answer it. It is a phone. Say hello, use your manners. Do not ever ignore a phone call if the call is from Mom or Dad or Martha. Not ever.
  • Hand the phone to one of your parents promptly at 9:00pm every school night & every weekend night at 10:00pm. It will be shut off for the night and turned on again in the morning. If you would not make a call to someone’s land line, wherein their parents may answer first, then do not call or text. Listen to those instincts and respect other families like we would like to be respected.
  • Phone and Ipad do not go with you to the bathroom. First, they could get damaged. Second, the bathroom is not the place to watch a movie or chat on the phone.
  • If it falls into the toilet, smashes on the ground, or vanishes into thin air, yo
@jeremyjbowers
jeremyjbowers / app.py
Last active August 29, 2015 14:11
Helping to fix Karen's stuff!
# Import our stuff
from operator import attrgetter
from flask import Flask, render_template
from peewee import *
from models import Restaurant, Inspection
import json
@jeremyjbowers
jeremyjbowers / timeline.xml
Created December 11, 2014 19:38
A sample timeline XML file for Simile timeline.
<data
wiki-url="http://simile.mit.edu/shelf/"
wiki-section="Simile Monet Timeline">
{% for inspection in restaurant.inspections() %}
<event start="{{ inspection.date }}" title="{{ inspection }}" link="/inspection/{{ inspection.id }}/">{{ inspection.violations() }}</event>
{% endfor %}
</data>