Skip to content

Instantly share code, notes, and snippets.

View taylortrimble's full-sized avatar

Taylor Trimble taylortrimble

  • San Francisco, CA
  • 13:08 (UTC -07:00)
View GitHub Profile
@holman
holman / Guthrie IP.md
Last active August 4, 2016 03:30
Woody Guthrie, on intellectual property.

This song is Copyrighted in U.S., under Seal of Copyright # 154085, for a period of 28 years, and anybody caught singin it without our permission, will be mighty good friends of ourn, cause we don’t give a dern. Publish it. Write it. Sing it. Swing to it. Yodel it. We wrote it, that’s all we wanted to do.

  • Woody Guthrie, 1940's —
@wilsaj
wilsaj / laxflask.py
Last active March 13, 2018 13:26
example of subclassing flask.Flask to change the strict_slashes default to False for url routing
import flask
class LaxFlask(flask.Flask):
def add_url_rule(self, *args, **kwargs):
if 'strict_slashes' not in kwargs:
kwargs['strict_slashes'] = False
super(LaxFlask, self).add_url_rule(*args, **kwargs)
# instantiate with LaxFlask instead of Flask
app = LaxFlask(..)
# Builder file for sentry
#
FROM ubuntu
MAINTAINER Michael Crosby
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade
@Kern--
Kern-- / Makefile
Last active December 14, 2015 04:59
A simple makefile
#Name of the executable
TARGET =
#objects that go into the executable
OBJS =
CC = gcc
CFLAGS = -g -Wall
DEBUGGER = gdb
@alobato
alobato / start-stop-example.sh
Created March 3, 2012 23:09
start-stop-example
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support