Skip to content

Instantly share code, notes, and snippets.

Max Chadwick mpchadwick

Block or report user

Report or block mpchadwick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f6fe808a80d1764241bf86f43b372bb9
diff --git a/lib/Varien/Db/Adapter/Pdo/Mysql.php b/lib/Varien/Db/Adapter/Pdo/Mysql.php
index f17f16f2d..d8c0373ec 100644
--- a/lib/Varien/Db/Adapter/Pdo/Mysql.php
+++ b/lib/Varien/Db/Adapter/Pdo/Mysql.php
@@ -2947,7 +2947,7 @@ public function prepareSqlCondition($fieldName, $condition)
if (isset($condition['to'])) {
$query .= empty($query) ? '' : ' AND ';
$to = $this->_prepareSqlDateCondition($condition, 'to');
- $query = $this->_prepareQuotedSqlCondition($query . $conditionKeyMap['to'], $to, $fieldName);
+ $query = $query . $this->_prepareQuotedSqlCondition($conditionKeyMap['to'], $to, $fieldName);
View gist:e73e9582ce88922af61e28eae76e4510
function contentLoaded(win, fn) {
var done = false, top = true,
doc = win.document,
root = doc.documentElement,
modern = doc.addEventListener,
add = modern ? 'addEventListener' : 'attachEvent',
rem = modern ? 'removeEventListener' : 'detachEvent',
View gist:ea7fb4ceecb230881a70094ab6082a76
<Proxy "fcgi://127.0.0.1:9000">
ProxySet responsefieldsize=16384
</Proxy>
<FilesMatch \.php$>
SetHandler proxy:fcgi://127.0.0.1:9000
</FilesMatch>
@mpchadwick
mpchadwick / MDVA-6616_EE_2.1.9_COMPOSER_v1.patch
Created Sep 15, 2018
MDVA-6616_EE_2.1.9_COMPOSER_v1.patch
View MDVA-6616_EE_2.1.9_COMPOSER_v1.patch
commit 548997b5e068416d7d566de76c69c424f98d9c8c
Author: Roman Tkachenko <rotkachenko@magento.com>
Date: Tue Jan 9 17:32:20 2018 +0000
MDVA-6616: New customer account does not display until reindexed manually.
- Workaround - reindex row on save.
diff --git a/vendor/magento/module-customer/Model/Address.php b/vendor/magento/module-customer/Model/Address.php
index f012edb6700..75bdb7601a3 100644
@mpchadwick
mpchadwick / PATCH_MDVA-4538_EE_2.1.4_v2.composer.patch
Created Sep 11, 2018
PATCH_MDVA-4538_EE_2.1.4_v2.composer.patch
View PATCH_MDVA-4538_EE_2.1.4_v2.composer.patch
diff --git a/vendor/magento/module-customer/Model/Indexer/Source.php b/vendor/magento/module-customer/Model/Indexer/Source.php
new file mode 100644
index 0000000..2310953
--- /dev/null
+++ b/vendor/magento/module-customer/Model/Indexer/Source.php
@@ -0,0 +1,154 @@
+<?php
+/**
+ * Copyright © 2016 Magento. All rights reserved.
+ * See COPYING.txt for license details.
@mpchadwick
mpchadwick / magento-admin-users-and-roles.sql
Created May 8, 2017
magento-admin-users-and-roles.sql
View magento-admin-users-and-roles.sql
SELECT
firstname,
lastname,
email,
username,
au2.role_name
FROM admin_user
INNER JOIN admin_role au1
ON admin_user.user_id = au1.user_id
INNER JOIN admin_role au2
View gist:ad46c2e5fd4da3edfa322984651193a2
# generated by Chef for node localhost
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
@mpchadwick
mpchadwick / PATCH_SUPEE-9652_ee-ce_v2-2017-02-06-07-34-53.sh
Created Feb 7, 2017
PATCH_SUPEE-9652_ee-ce_v2-2017-02-06-07-34-53.sh
View PATCH_SUPEE-9652_ee-ce_v2-2017-02-06-07-34-53.sh
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@mpchadwick
mpchadwick / PATCH_SUPEE-9465_EE_1.14.3.0_v1.sh
Created Jan 21, 2017
PATCH_SUPEE-9465_EE_1.14.3.0_v1.sh
View PATCH_SUPEE-9465_EE_1.14.3.0_v1.sh
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@mpchadwick
mpchadwick / flush-magento-home-page-fpc.sh
Created Jan 18, 2017
flush-magento-home-page-fpc.sh
View flush-magento-home-page-fpc.sh
php -r 'require_once("app/Mage.php"); Mage::app(); $id = Mage::getModel("cms/page")->load(Mage::getStoreConfig("web/default/cms_home_page"))->getId(); Enterprise_PageCache_Model_Cache::getCacheInstance()->clean("CMS_PAGE_" . $id);'
You can’t perform that action at this time.