This file contains hidden or 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
    
  
  
    
  | # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
  
    
      This file contains hidden or 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 | |
| /** | |
| * @author MagePsycho <[email protected]> | |
| * @website http://www.magepsycho.com | |
| * @category Export / Import | |
| */ | |
| $mageFilename = 'app/Mage.php'; | |
| require_once $mageFilename; | |
| Mage::setIsDeveloperMode(true); | |
| ini_set('display_errors', 1); | 
  
    
      This file contains hidden or 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://nodejs.org/dist/v0.10.31/node-v0.10.31.tar.gz && tar -xzf node-v0.10.31.tar.gz && cd node-v0.10.31 && make && make install | 
  
    
      This file contains hidden or 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 /usr/local/Cellar/mysql/5.6.19/support-files/mysql.server start|stop|restart | |
| To have launchd start mysql at login: | |
| ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
| Then to load mysql now: | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | 
  
    
      This file contains hidden or 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 | |
| error_reporting( E_ALL ); | |
| require_once 'app/Mage.php'; | |
| umask(0); | |
| Mage::app(); | |
| $currentWorkingDirectory = getcwd(); | |
| if(!file_exists('var/extractedImages')) { | |
| mkdir('var/extractedImages', 0777); | 
  
    
      This file contains hidden or 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(); | |
| header('Content-Type: text/csv; charset=utf-8'); | |
| header('Content-Disposition: attachment; filename=customer-feed.csv'); | |
| // create a file pointer connected to the output stream | |
| $output = fopen('php://output', 'w'); | 
  
    
      This file contains hidden or 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(!isset($_GET['auth']) || $_GET['auth'] !== '3ebb68a6f75c4c32bd04fe8ed5d76f18') { | |
| header("HTTP/1.1 301 Moved Permanently"); | |
| header("Location: /"); | |
| header("X-Custom-Message: Please Authenticate"); | |
| die(); | |
| } | |
| require_once "app/Mage.php"; | |
| header("X-Robots-Tag: noindex,nofollow"); | 
  
    
      This file contains hidden or 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()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); | |
| $installer = new Mage_Sales_Model_Mysql4_Setup; | |
| $attribute = array( | |
| 'type' => 'text', | |
| 'label'=> 'Alternate H1', | |
| 'input' => 'text', | 
  
    
      This file contains hidden or 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 | |
| error_reporting( E_ALL ); | |
| require_once "app/Mage.php"; | |
| header("Content-type: application/json; charset=utf-8"); | |
| Mage::app(); | |
| $fields = array( | |
| "sku","store","type","name", | |
| "description","short_description", | |
| "size","height","weight","color", |