Skip to content

Instantly share code, notes, and snippets.

View andymboyle's full-sized avatar

Andy Boyle andymboyle

View GitHub Profile
My grandma was a rad lady. Here are things I heard she did during her life, some of which may or may not be accurate:
Grew up in Iowa, helped build bomber planes during World War II, caught my teenage mom smoking in the basement, singlehandedly defeated Hans Gruber at the Nakatomi Plaza, would read that one "Sesame Street" book where Big Bird steps in a bunch of tomatoes and go "SPLAT!" and always make me laugh even if I asked her to read it to me ten times in a row and singlehandedly taught me the importance of comedic timing, worked in radio selling ads and occasionally being on the air, singlehandedly defeated the Cobra Kai, took the train into Chicago as a 19-year-old woman (very scandalous in the 40s), taught me to love reading, taught me how delicious Kraft macaroni and cheese always will be, singlehandedly defeated the Decepticons and saved the Earth, cried when I sang in competitions when I was a youngster and pushed me to study music for awhile thus leading me to the path I am on now, totally let h
<html>
<h1>Hello!</h1>
<h2>waddup</h2>
<div class="blah">
<p>Test test test!</p>
</div>
</html>
curl -o tmp/production.dump `heroku pgbackups:url --remote production --app breaking-news` && pg_restore --verbose --clean --no-acl --no-owner -d bn_dev tmp/production.dump
@andymboyle
andymboyle / gist:799162
Created January 27, 2011 20:16
Attempted VCL file for Varnish
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default {
.host = "50.16.96.248";
.port = "80";
}
@andymboyle
andymboyle / gist:858896
Created March 7, 2011 18:02
view.py for class
@cache_control(public=True, max_age=300)
def recruiting_year(request, yslug):
year = RecruitClass.objects.get(year_slug=yslug)
recruiting_year = 1
years = RecruitClass.objects.all().order_by('year')
player = Recruit.objects.filter(college_class__year_slug=yslug).filter(Q(signing_day_pick_school__school__short_name="Florida")|Q(verbal_commit_pick_school__school__short_name="Florida")).filter(Q(committed_status__status="Signed")|Q(committed_status__status="Verbal")).order_by('last_name')
return render_to_response('year_detail.html', {
'player': player,
'year': year,
'years': years,
Installing ri documentation for rails-3.0.5...
File not found: lib
ERROR: While generating documentation for rails-3.0.5
... MESSAGE: exit
... RDOC args: --ri --op /Library/Ruby/Gems/1.8/doc/rails-3.0.5/ri lib --title rails-3.0.5 Documentation --quiet
@andymboyle
andymboyle / FireTracker settings.py
Created March 23, 2011 01:56
Here's your FireTracker settings.py file
# Django settings for firetracker project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Your Name', 'yourname@email.com'),
)
MANAGERS = ADMINS
table:
title: University of Nebraska system's 2008 Fiscal Year Salaries
file: unl2008.csv
deck:
<p>Check out how much goddamn money they made </p>
footer:
<p>Source:&nbsp;<a href="http://www.fdic.gov/bank/individual/failed/banklist.html">FDIC</a></p>
column_options:
columns:
- Name
table:
title: University of Nebraska system's 2008 Fiscal Year Salaries
file: unl2008.csv
deck:
<p>Check out how much goddamn money they made </p>
footer:
<p>Source:&nbsp;<a href="http://www.fdic.gov/bank/individual/failed/banklist.html">FDIC</a></p>
column_options:
columns:
- Name
@andymboyle
andymboyle / gist:947608
Created April 29, 2011 00:03
Varnish default.vcl file
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default {
.host = "50.16.96.248";
.port = "8000";
}