This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
index 57ece57..f0ad2a6 100644 | |
--- a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
+++ b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
@@ -46,6 +46,7 @@ class Enterprise_PageCache_Model_Observer_Index | |
$entity->setId($entityId); | |
$cacheTags = array_merge($cacheTags, $entity->getCacheIdTags()); | |
} | |
+ $cacheTags = array_unique($cacheTags); | |
if (!empty($cacheTags)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
index 57ece57..f0ad2a6 100644 | |
--- a/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
+++ b/htdocs/app/code/core/Enterprise/PageCache/Model/Observer/Index.php | |
@@ -46,6 +46,7 @@ class Enterprise_PageCache_Model_Observer_Index | |
$entity->setId($entityId); | |
$cacheTags = array_merge($cacheTags, $entity->getCacheIdTags()); | |
} | |
+ $cacheTags = array_unique($cacheTags); | |
if (!empty($cacheTags)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd /sites | |
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition m2.demo | |
cd m2.demo | |
chmod +x bin/magento | |
bin/magento sampledata:deploy | |
composer update | |
mysql -e 'create database m2_demo' | |
bin/magento setup:install --base-url=http://m2.demo --backend-frontname=backend \ | |
--admin-user=admin --admin-firstname=Admin --admin-lastname=Admin \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer config repositories.alger/phpworld-talk1 vcs git@github.com:davidalger/phpworld-talk1.git | |
composer require alger/module-skeleton:dev-master | |
bin/magento setup:upgrade -q && bin/magento cache:flush -q | |
# OR | |
git clone git@github.com:davidalger/phpworld-talk1.git app/code/Alger/Skeleton | |
bin/magento module:enable Alger_Skeleton | |
bin/magento setup:upgrade -q && bin/magento cache:flush -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir -p /server/sites/m2.dev | |
cd /server/sites/m2.dev | |
git clone git@github.com:magento/magento2.git ./ && git checkout 2.0.0 | |
composer install --no-interaction --prefer-dist | |
mysql -e 'create database m2_dev' | |
bin/magento setup:install --base-url=http://m2.dev --backend-frontname=backend \ | |
--admin-user=admin --admin-firstname=Admin --admin-lastname=Admin \ | |
--admin-email=user@example.com --admin-password=A123456 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cat /dev/disk2s1 | php -r 'echo preg_replace("/.*(<html>.*<\/html>).*/s", "$1", file_get_contents("php://stdin"));' > ~/poken.htm; open ~/poken.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date: Fri, 5 Jul 2013 22:41:03 -0500 | |
Subject: [PATCH] Magento_CE_1.7.0.2_v1-CSRF_Patch | |
--- | |
.../core/Mage/Catalog/Block/Product/Abstract.php | 85 ++++- | |
app/code/core/Mage/Catalog/Block/Product/View.php | 10 +- | |
.../core/Mage/Catalog/Helper/Product/Compare.php | 28 +- | |
app/code/core/Mage/Checkout/Helper/Cart.php | 26 +- | |
.../Mage/Checkout/controllers/CartController.php | 69 ++-- | |
.../Checkout/controllers/OnepageController.php | 70 +++- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Upgrade Packages | |
# yum update | |
# yum groupinstall "Development Tools" | |
Step 2: Installing Recommended Packages | |
# yum install gcc-c++ patch readline readline-devel zlib zlib-devel | |
# yum install libyaml-devel libffi-devel openssl-devel make | |
# yum install bzip2 autoconf automake libtool bison iconv-devel | |
Step 3: Install RVM ( Ruby Version Manager ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# | |
# Example use: Add the following line to your crontab to run the script on a daily basis. | |
# | |
# 1 6 * * * ~/bin/compare_and_email.sh <full_path_to_webroot> "Email Subject Line" "user@example.com user2@example.com" | |
# | |
date=`date +%Y%m%d` | |
gitdir="$1" | |
subject="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://goaccess.io/ | |
yum install -y glib2 glib2-devel glibc make geoip geoip-devel ncurses-devel | |
cd ~/ | |
wget http://tar.goaccess.io/goaccess-1.1.1.tar.gz | |
tar -xzvf goaccess-1.1.1.tar.gz | |
cd goaccess-1.1.1/ | |
./configure --enable-geoip --enable-utf8 | |
make | |
make install |
OlderNewer