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
wget http://xdebug.org/files/xdebug-2.2.1.tgz | |
tar -xzvf xdebug-2.2.1.tgz | |
cd xdebug-2.2.1 | |
phpize | |
./configure --enable-xdebug | |
sudo make | |
sudo make install | |
sudo service apache2 restart |
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
Index: lib/Varien/Image/Adapter/Gd2.php | |
=================================================================== | |
--- lib/Varien/Image/Adapter/Gd2.php (revision 143037) | |
+++ lib/Varien/Image/Adapter/Gd2.php (revision 143038) | |
@@ -82,7 +82,9 @@ | |
*/ | |
protected function _convertToByte($memoryValue) | |
{ | |
- if (stripos($memoryValue, 'M') !== false) { | |
+ if (stripos($memoryValue, 'G') !== false) { |
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 vi /etc/hosts | |
# make sure your hostname goes in the first line | |
127.0.0.1 localhost.localdomain localhost addyourhostnamehere | |
... |
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 | |
/** | |
* Drop this into the shell directory in the Magento root and run without any arguments. | |
*/ | |
require_once 'abstract.php'; | |
/** | |
* Clean up the 1.6.1 sample data to work with the 1.8 CE url key constraints. |
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 cp /usr/share/doc/php-apc/apc.php.gz /var/www | |
$ sudo gzip -d /var/www/apc.php.gz | |
$ sudo vim /var/www/apc.php | |
# Change credentials near line 41: | |
defaults('ADMIN_USERNAME','apc'); // Admin Username | |
defaults('ADMIN_PASSWORD','password'); // Admin Password - CHANGE THIS TO ENABLE!!! |
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
svn propget svn:externals > tmp | |
echo "http:... ExternalName" >> tmp | |
svn propset svn:externals -F tmp . | |
svn commit --depth empty . -m "Added external" |
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 | |
final class Mage { | |
/** | |
* Get advanced exception trace | |
* | |
* @param Exception $exception | |
* @return string | |
*/ |
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
pre, code { | |
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; | |
} |
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 Mage_Core_Block_Abstract { | |
public function getChildHtml($name='', $useCache=true, $sorted=false) | |
{ | |
Varien_Profiler::start('getChildHtml: '.$name); | |
if ('' === $name) { | |
if ($sorted) { | |
$children = array(); |
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
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\e[C": forward-char | |
"\e[D": backward-char | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line |