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
DELIMITER // | |
CREATE PROCEDURE truncateAllTables() | |
-- | |
-- truncateAllTables | |
-- Date: 2014-05-26 | |
-- Author: Andrew Cassidy <andrew@cassidywebservices.co.uk> | |
-- Author: Marko Martinović <marko@techytalk.info> | |
-- | |
-- This Stored Procedure loops over the tables in the current database and | |
-- truncates them. |
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 | |
if(class_exists('Quick_Chat')) { | |
global $quick_chat; | |
*/ | |
* Define option variables: | |
* | |
* $height = '400'; | |
* $room = 'default'; |
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 | |
/** | |
* No activity within 1440 seconds; please log in again >>no more<< | |
* | |
* /etc/phpmyadmin/config.inc.php or wherever your PhpMyAdmin config file is | |
* | |
*/ | |
$cfg['Servers'][$i]['auth_type']= 'config'; | |
$cfg['Servers'][$i]['user'] = 'whatever'; |
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 Whatever_Whatever_Model_Pagecache_Processor extends Enterprise_PageCache_Model_Processor | |
{ | |
/** | |
* Do additional validation for request to be cached. Add condition that request must | |
* have request subprocessor implemented in order to be considered cacheable. | |
* Deals with bug found by @tim_bezhashvyly. | |
* |
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 | |
return array ( | |
'backend' => | |
array ( | |
'frontName' => 'backend', | |
), | |
'db' => | |
array ( | |
'table_prefix' => '', | |
'connection' => |
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
# Verified: Ubuntu 14.10 | |
sudo apt-get install ruby ruby-dev | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install python-software-properties python g++ make nodejs | |
sudo npm install -g bower grunt-cli |
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/bash | |
# Varnish 3.x for Ubuntu 14.10 | |
# Add repository | |
sudo add-apt-repository ppa:marko-techytalk.info/varnish-3.0 | |
# Update sources | |
sudo apt-get update | |
# Install Varnish 3.x |
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/bash | |
# Author: Marko Martinović | |
# http://www.magemeter.com/about | |
# Prints command traces | |
set -x | |
# Path to Apache jMeter executable | |
JMETER_PATH="/path/to/apache/jmeter/bin" |
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/app/code/core/Mage/Core/Model/Layout.php b/app/code/core/Mage/Core/Model/Layout.php | |
index f5dc619..373736d 100644 | |
--- a/app/code/core/Mage/Core/Model/Layout.php | |
+++ b/app/code/core/Mage/Core/Model/Layout.php | |
@@ -552,7 +552,7 @@ class Mage_Core_Model_Layout extends Varien_Simplexml_Config | |
$out = ''; | |
if (!empty($this->_output)) { | |
foreach ($this->_output as $callback) { | |
- $out .= $this->getBlock($callback[0])->$callback[1](); | |
+ $out .= $this->getBlock($callback[0])->{$callback[1]}(); |
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
2015-10-30T10:54:10+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url') AND (`is_allowed` = 1) | |
2015-10-30T10:54:11+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url') AND (`is_allowed` = 1) | |
2015-10-30T10:54:11+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url') AND (`is_allowed` = 1) | |
2015-10-30T10:54:11+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url') AND (`is_allowed` = 1) | |
2015-10-30T10:54:11+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url') AND (`is_allowed` = 1) | |
2015-10-30T10:54:11+00:00 DEBUG (7): SELECT `main_table`.* FROM `permission_variable` AS `main_table` WHERE (`variable_name` = 'web/unsecure/base_url |
OlderNewer