Skip to content

Instantly share code, notes, and snippets.

@christopheradams
christopheradams / media.php
Last active December 18, 2015 12:29
Fix for framework / app / config / bootstrap / media.php
<?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
/**
* The `Collection` class, which serves as the base class for some of Lithium's data objects
@christopheradams
christopheradams / git-permission-reset.sh
Created June 14, 2013 07:14
Reset file permissions in a Git repository.
git diff -p | grep -E '^(diff|old mode|new mode)' | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' | git apply