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
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |
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
| #!/usr/bin/env bash | |
| # variables | |
| vagrant="" | |
| # functions | |
| errcho() { | |
| >&2 echo "$*" | |
| exit 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
| Host *.vpc.mycorp.com | |
| User ubuntu | |
| ProxyCommand ssh -W %h:%p ec2-user@nat.mycorp.com | |
| IdentityFile "~/.ssh/mykey.pem" | |
| Host 172.1.* | |
| User ubuntu | |
| ProxyCommand ssh -W %h:%p ec2-user@nat.mycorp.com | |
| IdentityFile "~/.ssh/mykey.pem" | |
| Host nat.mycorp.com |
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
| <?xml version="1.0"?> | |
| <config> | |
| <global> | |
| <skip_process_modules_updates>1</skip_process_modules_updates> | |
| </global> | |
| </config> |
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 | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Open Software License (OSL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/osl-3.0.php |
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 | |
| class EcomDev_Optimization_Model_Rule_Observer extends Mage_CatalogRule_Model_Observer | |
| { | |
| protected $_preloadedPrices = array(); | |
| public function beforeCollectTotals(Varien_Event_Observer $observer) | |
| { | |
| $quote = $observer->getQuote(); | |
| $date = Mage::app()->getLocale()->storeTimeStamp($quote->getStoreId()); |
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 | |
| /** | |
| * Optimized version of attribute source options model | |
| * | |
| * That allows to preload options once and reuse them instead of doing calls to db all the time | |
| * | |
| */ | |
| class EcomDev_Optimization_Model_Resource_Attribute_Source_Table | |
| extends Mage_Eav_Model_Entity_Attribute_Source_Table |
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
| kyle@robodance:~$ cat .tmux.conf | |
| # Set escape char to Ctrl-J | |
| # set-option -g prefix C-j | |
| # unbind-key C-b | |
| # bind-key C-j send-prefix | |
| source ~/.tmux-keybinding.conf | |
| # easy window splitting | |
| unbind % | |
| bind | split-window -h |
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 | |
| /** | |
| * Drop this into the shell directory in the Magento root and run with -h to see all options. | |
| */ | |
| require_once 'abstract.php'; | |
| /** | |
| * Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints. |
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
| #!/bin/bash | |
| #git pull | |
| releaseDir=`date +%F-%H-%M-%S` | |
| sudo mkdir -p /var/www/releases/$releaseDir | |
| sudo chown ec2-user.ec2-user /var/www/releases/$releaseDir | |
| #assumes docroot is the name of the directory in your repo to deploy | |
| cp -r ./docroot /var/www/releases/$releaseDir/ |
NewerOlder