Skip to content

Instantly share code, notes, and snippets.

View jasonmoo's full-sized avatar

Jason Mooberry jasonmoo

View GitHub Profile
@jasonmoo
jasonmoo / hghookscript.pl
Created January 13, 2011 23:08
A perl script for hooking into a Mercurial hook event. -In it's current form it will make a backup, convert indenting to tabs, and lint check php files. -Allows for anonymous subs to be passed as adhoc filters.
###
### HG Hook script
### - allows filtering and other actions to be
### run at a designated hook.
###
# a copy of each file along with it's directory structure
# is placed here when the script is initially run.
$BACKUP_DIR = "~/_hg_modified";
@jasonmoo
jasonmoo / PHPFPM.Portfile
Created December 1, 2010 23:31
PHP 5.3.3 MacPorts Portfile with FPM enabled FastCGI variant
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 71588 2010-09-17 05:21:24Z [email protected] $
PortSystem 1.0
name php5
conflicts php5-devel php52
# Update revision of php5-eaccelerator when updating version of php5
epoch 1
version 5.3.3