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
# 'backups/' dir must exist previously. | |
# Removes backup files older than 7 days, | |
Command: find backups/* -mtime +7 -exec rm {} \; | |
# Every day at midnight | |
UNIX cron schedule: 0 0 * * * | |
# Creates backups in the 'backups/' writable directory. | |
Command: mysqldump -h $DB1_HOST -P $DB1_PORT -u $DB1_USER -p$DB1_PASS $DB1_NAME > backups/$DB1_NAME-"$(date +"%m_%d_%Y")".sql | |
# Every day at 1AM |
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
SELECT | |
ce.sku, | |
ea.attribute_id, | |
ea.attribute_code, | |
CASE ea.backend_type | |
WHEN 'varchar' THEN ce_varchar.value | |
WHEN 'int' THEN ce_int.value | |
WHEN 'text' THEN ce_text.value | |
WHEN 'decimal' THEN ce_decimal.value | |
WHEN 'datetime' THEN ce_datetime.value |
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
# First set the custom error handler at the beginning of the script: | |
# php docs: http://php.net/manual/en/function.set-error-handler.php | |
set_error_handler('workerErrorHandler'); | |
# Next define the workerErrorHandler function: | |
function workerErrorHandler($errno, $errstr, $errfile, $errline) | |
{ | |
if (!(error_reporting() & $errno)) { | |
// This error code is not included in error_reporting |
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
<frontend> | |
<events> | |
<!-- logs --> | |
<controller_action_predispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_postdispatch> | |
<customer_login> |