Skip to content

Instantly share code, notes, and snippets.

View chales's full-sized avatar

Chris Hales chales

View GitHub Profile
@mostalive
mostalive / default.vcl
Created December 17, 2010 07:57
varnish cache server configuration file, used with drupal 6 and apache
#varnish cache server configuration file, used with drupal 6 and apache
#inspiration from https://wiki.fourkitchens.com/display/PF/Configure+Varnish+for+Pressflow
#with change from obj to beresp of
#http://www.mail-archive.com/[email protected]/msg02911.html
#and cache HIT or MISS header from somewhere else
backend default {
.host = "127.0.0.1";
.port = "80";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
@rafi
rafi / post-receive
Created March 25, 2010 19:34
Deploying with Git
mkdir ~/git/website.git && ~/git/cd website.git
git init --bare
mkdir ~/webapps/website
git config core.bare false
git config core.worktree /home/rafi/webapps/website ; NO TRAILING SLASH!!! Will screw up things real bad.
git config receive.denycurrentbranch ignore
; create a hook
cat > hooks/post-receive
#!/bin/sh