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
-- MySQL dump 10.13 Distrib 5.5.34, for osx10.6 (i386) | |
-- | |
-- Host: localhost Database: magento-virgin | |
-- ------------------------------------------------------ | |
-- Server version 5.5.34 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
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
# ######################################################################## | |
# api2_acl_attribute | |
# ######################################################################## | |
# IDX_API2_ACL_ATTRIBUTE_USER_TYPE is a left-prefix of UNQ_API2_ACL_ATTRIBUTE_USER_TYPE_RESOURCE_ID_OPERATION | |
# Key definitions: | |
# KEY `IDX_API2_ACL_ATTRIBUTE_USER_TYPE` (`user_type`) | |
# UNIQUE KEY `UNQ_API2_ACL_ATTRIBUTE_USER_TYPE_RESOURCE_ID_OPERATION` (`user_type`,`resource_id`,`operation`), | |
# Column types: | |
# `user_type` varchar(20) not null comment 'type of user' |
I hereby claim:
- I am schumacherfm on github.
- I am cyrill (https://keybase.io/cyrill) on keybase.
- I have a public key whose fingerprint is 076A 9DCE D5C2 63EE 438B 2BF7 3D7A E252 C8C7 9677
To claim this, I am signing this object:
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 Zookal_Customer_Model_Observer_Controller_OAuth | |
{ | |
/** | |
* @param string $url | |
* | |
* @return bool | |
*/ |
After having many deadlocks due to a high order volumne I've applied the these fixes to the core. Some can be found in a Magento forum. Before the fixes we could only process 1 order every 5-10 secs. Updating to Magento 1.8 is currently not an option but in 1-2 months.
Mage_Sales_Model_Abstract::_afterSave
must be removed and replaced with afterCommitCallback
. This is important to move the grid update (of sales_flat_order_grid) out of the transaction.
Rewrite the method of the Mage_CatalogInventory_Model_Observer::reindexQuoteInventory()
to remove the price reindexing from the transaction. That index process will also be fired in event sales_model_service_quote_submit_success
.
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 | |
/** | |
* Checkout subscribe checkbox block renderer | |
* | |
* @category Ebizmarts | |
* @package Ebizmarts_MageMonkey | |
* @author Ebizmarts Team <[email protected]> | |
*/ | |
class Ebizmarts_MageMonkey_Block_Checkout_Subscribe extends Ebizmarts_MageMonkey_Block_Lists |
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
/* | |
load js libs: | |
'/Resources/public/js/lib/ace/ace.js' | |
'/Resources/public/js/lib/ace/mode-diff.js' | |
'/Resources/public/js/lib/ace/theme-chrome.js' | |
https://github.com/Slava/diff.js/blob/master/diff.js | |
*/ | |
var data = { /*json from server ... */ | |
after: [ |
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 | |
$integers = range(100, 1000); | |
foreach ($integers as &$int) { | |
$int = (string)$int; | |
} | |
function arrayToInt(array $arr) | |
{ |