Skip to content

Instantly share code, notes, and snippets.

Avatar

Cristian Nicolescu firewizard

View GitHub Profile
@firewizard
firewizard / Mage_Adminhtml_Controller_Action_Acl.php
Last active Nov 9, 2015
Improved controller action class handling menus acl's for Magento stores with SUPEE-6285 applied
View Mage_Adminhtml_Controller_Action_Acl.php
<?php
class Mage_Adminhtml_Controller_Action_Acl extends Mage_Adminhtml_Controller_Action
{
/**
* If an action is not found in the menu node the mapping can be manually set in this array.
* It currently accepts 3 types of values, the key is always the action to be executed:
* 1 - true - allow everyone to perform the action
* 2 - existing "action name" with menu & acl entries
* 3 - existing acl resource, using the following template:
@firewizard
firewizard / check-urls.sh
Created Sep 16, 2015
get response codes for a list of urls
View check-urls.sh
#!/bin/sh
while read LINE;
do curl -L -o /dev/null --silent --head --write-out '%{http_code}' "$LINE";
echo " $LINE";
done < $1
View Zend_Cache_Backend_Memcached.php
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
View touch.js
jQuery Touch Gestures ported from QUOjs
@see http://quojs.tapquo.com/
Version 1.1
-- @add singleTap event
-- @fix doubleTap event
-- @fix hold event