Skip to content

Instantly share code, notes, and snippets.

app/code/core/Enterprise/PageCache/Model/Cookie.php | 1 +
app/code/core/Enterprise/PageCache/Model/Observer.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/code/core/Enterprise/PageCache/Model/Cookie.php b/app/code/core/Enterprise/PageCache/Model/Cookie.php
index 8d6ef605c5..9979b763f3 100644
--- a/app/code/core/Enterprise/PageCache/Model/Cookie.php
+++ b/app/code/core/Enterprise/PageCache/Model/Cookie.php
@@ -258,6 +258,7 @@ public static function getCategoryViewedCookieValue($id)
public static function setFormKeyCookieValue($formKey)
@artmouse
artmouse / PATCH_SUPEE-9465_EE_1.14.3.0_v1.sh
Created January 21, 2017 09:32 — forked from mpchadwick/PATCH_SUPEE-9465_EE_1.14.3.0_v1.sh
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=""

DEVELOPER PLUS

87 Multiple Choice items (85 scored, 2 unscored)
120 minutes to complete the exam
Based on Magento Community Edition 1.9 and Magento Enterprise Edition 1.14

Passing score

Magento Certified Developer Plus exam: For sections 11 & 12 combined a score of 7 or higher AND meet the overall passing score of 48 or higher

 5%  1-Basics (config, events, cron, translations, theme, locating template/layout file)

6% 2-Request Flow

@artmouse
artmouse / patch.sh
Created October 18, 2016 20:32 — forked from andrew-smart/patch.sh
Magento 1.9.3 Free Shipping Sales Rule Fix
diff --git a/app/code/core/Mage/SalesRule/etc/config.xml b/app/code/core/Mage/SalesRule/etc/config.xml
index d5e7763..6a0e898 100644
--- a/app/code/core/Mage/SalesRule/etc/config.xml
+++ b/app/code/core/Mage/SalesRule/etc/config.xml
@@ -134,8 +134,8 @@
<totals>
<freeshipping>
<class>salesrule/quote_freeshipping</class>
- <after>subtotal,tax_subtotal</after>
- <before>shipping</before>
@artmouse
artmouse / fastcgi_params
Created October 5, 2016 12:08
Activecollab 5 nginx configuration (with php-fastcgi). I'm not an expert here at all. I managed to make it all work. YMMV.
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
@artmouse
artmouse / Ssl-Http2-LetsEncrypt.md
Created October 2, 2016 13:06 — forked from moux2003/Ssl-Http2-LetsEncrypt.md
LetsEncrypt procedure

Install, configure and automatically renew Let's Encrypt SSL certificate

I've recentelly passed https://vincent.composieux.fr over HTTPS using a Let's Encrypt free SSL certificate so this blog articles will explain you how I've done it, how I also renew the certificate automatically every 60 days and how I've configured my Varnish and Nginx stack.

Let's introduce Let's Encrypt

This initiative is sponsored by the biggest Internet companies and browsers: Google (Chrome), Mozilla (Firefox), Akamai, Facebook, ... so this is widely supported.

@artmouse
artmouse / speep_up_catalog_category_product_indexer.md
Created September 21, 2016 19:45 — forked from schumachera/speep_up_catalog_category_product_indexer.md
Speed up catalog_category_product full reindexing in Magento 1 EE

Speed up Magento EE 1.x catalog_category_product indexer

For refreshing the catalog_category_product index Magento EE generates SQL queries with joins over many tables to determine which product relates to what category and may show up in what category.

The queries fired by the indexer will look something like this:

INSERT IGNORE INTO `catalog_category_product_index_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT `cc`.`entity_id` AS `category_id`, `ccp`.`product_id`, ccp.position + 10000 AS `position`, 0 AS `is_parent`, 20 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_category_entity` AS `cc`
 INNER JOIN `catalog_category_entity` AS `cc2` ON cc2.path LIKE CONCAT(`cc`.`path`, '/%') AND cc.entity_id NOT IN (1)
 INNER JOIN `catalog_category_product` AS `ccp` ON ccp.category_id = cc2.entity_id
@artmouse
artmouse / .bashrc
Created August 9, 2016 16:32 — forked from jhoelzl/.bashrc
Generate modman mapping file for each module file individually
# Add this command to your .bashrc and then use "gm" in your Magento modman folder to create a modman mapping file
# Generate modman
function gm() {
for i in `find . -type f | grep -v \.git/ | grep -v "^.$" | grep -v "modman" | sed 's/\.\///'`; do echo -e ${i}' '${i};done > modman
}
@artmouse
artmouse / modman-generator
Created August 9, 2016 16:28 — forked from pedrambehroozi/modman-generator
modman file generator for Magento
#!/bin/sh
# usage: ./modman-generator module-dir-name
cd $1
echo "Generating magento modman file in $1"
rm -f modman
git ls-files | egrep -v '.svn|composer.json|modman|.gitignore|README|package.xml|.sass-cache|LICENSE.txt|readme.*' | awk -F'\t' '{print $1 " " $1}' >> modman
@artmouse
artmouse / mage_modman_generator.sh
Created August 9, 2016 16:28
mage_modman_generator.sh
#!/bin/sh
find -type f | sed 's/\.\/\(.*\)/\1 \1/' | grep -v '^.git' > modman