Skip to content

Instantly share code, notes, and snippets.

View firewizard's full-sized avatar

Cristian Nicolescu firewizard

View GitHub Profile
@firewizard
firewizard / Mage_Adminhtml_Controller_Action_Acl.php
Last active November 9, 2015 21:50
Improved controller action class handling menus acl's for Magento stores with SUPEE-6285 applied
<?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 September 16, 2015 18:33
get response codes for a list of urls
#!/bin/sh
while read LINE;
do curl -L -o /dev/null --silent --head --write-out '%{http_code}' "$LINE";
echo " $LINE";
done < $1
<?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
@firewizard
firewizard / touch.js
Last active August 29, 2015 13:56 — forked from vitalyrotari/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