Skip to content

Instantly share code, notes, and snippets.

@lukefowell
lukefowell / black-and-white-google-maps.js
Created December 2, 2015 10:13
Black and White Google Maps
var styles = [
{
featureType: 'water',
elementType: 'all',
stylers: [
{ hue: '#000000' },
{ saturation: -100 },
{ lightness: -100 },
{ visibility: 'on' }
]
@lukefowell
lukefowell / module-status.php
Created June 23, 2014 14:56
PHP File to list and enable/disable Magento modules. Run from root of Magento, must be under Authentication due. Not for use on production
<?php
$cwd = getcwd();
if($handle = opendir($cwd.'/app/etc/modules/'))
{
$modules = array();
while(false !== ($entry = readdir($handle)))
{
if(preg_match('/\.xml$/', $entry))
@lukefowell
lukefowell / gist:8404589
Created January 13, 2014 17:44
Cybersource Test return
2014-01-13T17:28:37+00:00 DEBUG (7): stdClass Object
(
[merchantReferenceCode] => 100000213
[requestID] => 3896341155240176056470
[decision] => REJECT
[reasonCode] => 475
[requestToken] => AhjzbwSRpnExCftDqfEscgSftb9ZqXZ0UrVDT61dvSTLF18DwJADAAAAZBUC
[payerAuthEnrollReply] => stdClass Object
(
[reasonCode] => 475
@lukefowell
lukefowell / .htaccess
Created December 11, 2012 09:59
Setting Magento Developer Mode
SetEnv MAGE_IS_DEVELOPER_MODE 1