Skip to content

Instantly share code, notes, and snippets.

View jamiefdhurst's full-sized avatar

Jamie Hurst jamiefdhurst

View GitHub Profile
@jamiefdhurst
jamiefdhurst / mercurial-compile
Created July 8, 2011 09:39
Compilation of Mercurial on Debian
jamie@projectx-server:~$ mkdir mercurial-test
jamie@projectx-server:~$ cd mercurial-test/
jamie@projectx-server:~/mercurial-test$ wget http://mercurial.selenic.com/release/mercurial-1.9.tar.gz
--2011-07-08 10:34:39-- http://mercurial.selenic.com/release/mercurial-1.9.tar.gz
Resolving mercurial.selenic.com... 173.11.57.243
Connecting to mercurial.selenic.com|173.11.57.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2964382 (2.8M) [application/x-gzip]
Saving to: `mercurial-1.9.tar.gz'
@jamiefdhurst
jamiefdhurst / gist:886699
Created March 25, 2011 11:15
Zend Module Route Example
// Add the custom route for the gets action in the index controller of the slot module
$router = Zend_Controller_Front::getInstance()->getRouter();
$route = new Zend_Controller_Router_Route(
'slots/get',
array(
'module' => 'slots',
'controller' => 'index',
'action' => 'get'