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 [ | |
'backend' => [ | |
'frontName' => 'admin' | |
], | |
'remote_storage' => [ | |
'driver' => 'file' | |
], | |
'queue' => [ | |
'consumers_wait_for_messages' => 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
switch-php() { | |
valet stop | |
brew unlink [email protected] [email protected] [email protected] | |
brew link --force --overwrite php@$1 | |
brew services restart php@$1 | |
composer global update | |
rm -f ~/.config/valet/valet.sock | |
valet install | |
} |
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
cd ~ | |
git clone https://github.com/OpenMage/magento-mirror.git | |
cd magento-mirror | |
rsync -chavzP --exclude='.git' --exclude='dev/' --exclude='media/' --exclude='var/cache/' --exclude='var/tmp/' --exclude='var/session/' --exclude='var/report/' --stats ./ /var/www/public_html |
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 | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$products = Mage::getModel('catalog/product')->getCollection(); | |
//->addAttributeToFilter('entity_id', array('gt' => 14000)); | |
$mediaApi = Mage::getModel("catalog/product_attribute_media_api"); |