Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{"id":708083,"data":[[800,"0001","0100000000",1995,1,"","","","","40","S","","","","S","","","","","6.14","12.00","0.00","6.14","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","19950606","19950606","","","","","","RFBU","","","0.00","",0,"","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000100000","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","6.14","7.37","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00" |
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
mkdir demo | |
cd demo | |
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz | |
wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz | |
tar -zxvf magento-1.8.1.0.tar.gz | |
tar -zxvf magento-sample-data-1.6.1.0.tar.gz | |
mv magento-sample-data-1.6.1.0/media/* magento/media/ | |
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql magento/data.sql | |
mv magento/* magento/.htaccess . | |
chmod o+w var var/.htaccess app/etc |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Pagination with AngularJS - jsFiddle demo</title> | |
<script type='text/javascript' src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js'></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular-sanitize.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular-resource.js"></script> | |
<link rel="stylesheet" type="text/css" href="/css/result-light.css"> |
##php[world] Tutorial Attendee Guide ###Scaling Magento - Reaching Peak Performance
####When / Where Monday, November 17th 9:00AM-12:30PM Ash Grove B
####General Overview We will be talking about clustering Magento and using Vagrant with Digital Ocean to back the tutorial. Vagrant and
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
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
# See https://www.byte.nl/blog/magento-cacheleak-issue | |
user app; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading | |
# slashes. | |
# If your page resides at | |
# http://www.example.com/mypage/test1 | |
# then use | |
# RewriteBase /mypage/test1/ | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
<?php | |
class EcomDev_Optimization_Model_Rule_Observer extends Mage_CatalogRule_Model_Observer | |
{ | |
protected $_preloadedPrices = array(); | |
public function beforeCollectTotals(Varien_Event_Observer $observer) | |
{ | |
$quote = $observer->getQuote(); | |
$date = Mage::app()->getLocale()->storeTimeStamp($quote->getStoreId()); |
OlderNewer