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
<!-- do this: --> | |
<catalog_category_default> | |
<update handle="page_one_column" /> | |
</catalog_category_default> | |
<!-- Also possible, but won't apply other settings that might be attached to the 1column layout (so don't do that...): --> |
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
curl --silent http://example.com/sitemap.xml | xpath -q -e "/urlset/url/loc/text()" > tmp.urls && siege -v -c 1 -r `cat tmp.urls | wc -l` -f tmp.urls |
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
<!-- in local.xml --> | |
<!-- Note that enterprise modules have dependencies to Mage_AdminNotification, so disabling it this way could break something --> | |
<config> | |
<modules> | |
<Mage_AdminNotification> | |
<active>false</active> | |
</Mage_AdminNotification> | |
</modules> | |
</config> |
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 | |
$cfg['MaxTableList'] = 1000; | |
$cfg['ThemeDefault'] = 'original'; |
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
for i in `cat tmp.urls` | |
do echo $i | |
URLHOSTNAME=`echo "$i" | sed -e 's@.*//\([^/]*\)/*.*@\1@'` | |
URLPATH=`echo "$i" | sed -e 's@.*//[^/]*\(/*.*\)@\1@'` | |
for varnish in 'varnish1hostname varnish2hostname'; do | |
curl -H "Accept-Encoding: gzip, deflate" -H "Host: ${URLHOSTNAME}" -s -X GET -I http://$varnish/$URLPATH | egrep 'HTTP/|Age:|X-Cache' | |
done | |
done |
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 FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. | |
* Works only with Selenium2Driver. | |
* | |
* @AfterStep | |
*/ |
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
@ECHO OFF | |
SET BACKUPSTORAGEPATH=\\AOE-nas\fabrizio.branca\backup\Virtualbox\ | |
SET VBOXMANAGE="C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" | |
SET VMNAME=devbox | |
IF NOT EXIST %BACKUPSTORAGEPATH% GOTO NOBACKUPDIRFOUND | |
echo Starting backup of VM '%VMNAME%' to %BACKUPSTORAGEPATH% |
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 -hHOST -uUSER -pPASS DBNAME -e 'select sku, entity_id from catalog_product_entity' -B | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" > skuToId.csv |
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
CREATE USER 'play'@'localhost' IDENTIFIED BY 'play'; | |
GRANT USAGE ON *.* TO 'play'@'localhost' IDENTIFIED BY 'play' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; | |
CREATE DATABASE IF NOT EXISTS play DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
GRANT ALL PRIVILEGES ON `play`.* TO 'play'@'localhost'; | |
FLUSH PRIVILEGES; |
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
SetEnv MAGE_IS_DEVELOPER_MODE "true" | |
php_flag display_startup_errors on | |
php_flag display_errors on | |
php_flag html_errors on | |
php_flag log_errors on | |
php_value error_log /var/www/magentoplayground/devbox/htdocs/var/log/php_errors.log | |
# Also don't forget to copy errors/local.xml.sample to errors/local.xml |