Skip to content

Instantly share code, notes, and snippets.

@rlandas
rlandas / gist:4091376
Created November 16, 2012 22:15
GIT: Reset and delete all uncommitted files and pull the latest from the repository
git reset --hard HEAD;
git clean -f -d;
git pull;
@rlandas
rlandas / routes.php
Created October 11, 2012 12:03 — forked from robertbasic/routes.php
ZF2 Nice and clean routes with Part
<?php
$slugConstraints = '[\w_-]+';
$pagenumberChild = array(
'type' => 'segment',
'options' => array(
'route' => '/page/:page',
'constraints' => array(
'page' => '\d+'