Skip to content

Instantly share code, notes, and snippets.

View toluolubajo's full-sized avatar

Bolaji Olubajo toluolubajo

View GitHub Profile
@toluolubajo
toluolubajo / swiss_git.sh
Created March 13, 2015 11:29
Get the list of all changed files between two git commits
git log --pretty="%h" 63e2e9..2acf29d | awk '{ for(i=1; i <= NF; i++) {print $i } }' | xargs -n 1 git diff-tree --no-commit-id --name-only -r | sort | uniq
@toluolubajo
toluolubajo / Simple.php
Created May 27, 2014 09:54
Fix for Deprecated functionality: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in lib/Varien/Filter/Template/Simple.php on line 42
class Varien_Filter_Template_Simple extends Varien_Object implements Zend_Filter_Interface
{
protected $_startTag = '{{';
protected $_endTag = '}}';
public function setTags($start, $end)
{
$this->_startTag = $start;
$this->_endTag = $end;
return $this;
<?php
/**
* Drop this into the shell directory in the Magento root and run with -h to see all options.
*/
require_once 'abstract.php';
/**
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints.