Public Gists by chris

Gravatar
Thu Nov 12 08:39:03 -0800 2009
1
2
3
development: &global_settings
  database: textual_development
  host: 127.0.0.1
gist: 231439 SQL to get the size of your...
Gravatar
Tue Nov 10 16:30:46 -0800 2009
1
2
3
-- SQL to calculate the size of your database (data, indexes, total).
-- Replace the "DATABASE_NAME in the 2nd to last line with the name of your DB
SELECT concat( table_schema, '.', table_name ) table_name,
gist: 187884 memcached LaunchDaemon for ...
Gravatar
Tue Sep 15 22:17:26 -0700 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Gravatar
Wed Aug 19 21:28:33 -0700 2009
1
2
3
#! /bin/sh
### BEGIN INIT INFO
# Provides: tracker_github_hook
gist: 157741 init/rc daemon script for c...
Gravatar
Tue Jul 28 15:45:59 -0700 2009
1
2
3
#! /bin/sh
### BEGIN INIT INFO
# Provides: cruisecontrol.rb
gist: 106796 Nginx rewrite rule to chang...
Gravatar
Mon May 04 19:16:07 -0700 2009
1
2
3
if ($request_uri ~* ^(.+)\?page=1$) {
  set $dom_prefix $1;
  set $args '';
gist: 105132 Script to simply go through...
Gravatar
Fri May 01 09:55:08 -0700 2009
1
2
3
#!script/runner
# Script to simply go through and save all active deals, so we update their Affiliate association
 
gist: 31459 Ruby benchmarking example
Gravatar
Tue Dec 02 23:32:08 -0800 2008
1
2
3
# Ruby benchmarking example
Benchmark.bm(5) do |timer|
  
gist: 26822 Use script/runner to execut...
Gravatar
Wed Nov 19 15:38:20 -0800 2008
1
2
3
#!script/runner
# Use script/runner to execute a route/controller action - delete this line in real life, it's just here to help me know which gist this is.
require 'action_controller/integration'
Gravatar
Mon Nov 10 13:50:25 -0800 2008
1
2
3
require 'autotest/redgreen'
 
module Autotest::Growl
gist: 23031 zsh Git branch in your prompt
Gravatar
Fri Nov 07 21:32:41 -0800 2008
1
2
3
# zsh Git branch in your prompt, etc.
 
function precmd() {
Gravatar
Tue Oct 14 09:35:06 -0700 2008
1
2
-- Find duplicates in SQL from multiple columns
select name, email from emails group by name, email having count(*) > 1;
Gravatar
Tue Oct 07 11:14:11 -0700 2008
1
2
3
# My .irbrc
 
require 'rubygems'
Gravatar
Sat Sep 13 00:49:42 -0700 2008
1
2
3
#!/usr/bin/env ruby
#
# Script to set all "fixed" Lighthouse tickets to deployed
gist: 9780 dwf git script (Done With F...
Gravatar
Tue Sep 09 15:12:48 -0700 2008
1
2
3
#!/bin/sh -x
# dwf, aka "Done With Feature" script: deletes current branch and puts you back on master
ref=$(git symbolic-ref HEAD 2> /dev/null) || exit 0
gist: 9776 "ship" script for integrati...
Gravatar
Tue Sep 09 14:58:29 -0700 2008
1
2
3
#!/bin/sh -x
# Git workflow ship script from: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
# git name-rev is fail
gist: 9772 "hack" script for integrati...
Gravatar
Tue Sep 09 14:43:30 -0700 2008
1
2
3
#!/bin/sh -x
# hack: Merge the latest changes from the master branch into your current branch
ref=$(git symbolic-ref HEAD 2> /dev/null) || exit 0
Gravatar
Fri Aug 29 11:26:50 -0700 2008
1
2
3
  location /blog {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Gravatar
Fri Aug 29 09:52:24 -0700 2008
1
2
3
# This is for a WordPress installed at /var/www/wordpress/blog, and accessed at http://www.example.com/blog.
server {
  listen 80;
Gravatar
Fri Aug 29 09:43:29 -0700 2008
1
2
3
#! /bin/sh
 
### BEGIN INIT INFO