LC_ALL=C sed -E 's/DEFINER[ ]*=[ ]*`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g'pv /path/to/mysqldump.sql.gz \| sudo cat /dev/disk2s1 | php -r 'echo preg_replace("/.*(<html>.*<\/html>).*/s", "$1", file_get_contents("php://stdin"));' > ~/poken.htm; open ~/poken.htm |
| 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 +++- |
| 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)) { |
| 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)) { |
| #!/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" "[email protected] [email protected]" | |
| # | |
| date=`date +%Y%m%d` | |
| gitdir="$1" | |
| subject="$2" |
| #!/usr/bin/env bash | |
| # usage: put at /usr/local/bin/magento then call from anywhere within a magento 2 webroot | |
| # | |
| dir="$(pwd)" | |
| while [[ "$dir" != "/" ]]; do | |
| if [[ -x "$dir/bin/magento" ]]; then | |
| "$dir/bin/magento" "$@" | |
| exit $? | |
| fi |
| #!/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 \ |
| composer config repositories.alger/phpworld-talk2 vcs [email protected]:davidalger/phpworld-talk2.git | |
| composer require alger/module-skeleton:dev-master | |
| bin/magento setup:upgrade -q && bin/magento cache:flush -q | |
| # OR | |
| git clone [email protected]:davidalger/phpworld-talk2.git app/code/Alger/Skeleton | |
| bin/magento module:enable Alger_Skeleton | |
| bin/magento setup:upgrade -q && bin/magento cache:flush -q |