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
| { | |
| "base_currency_code": "SAR", | |
| "base_discount_amount": 0, | |
| "base_grand_total": 30, | |
| "base_discount_tax_compensation_amount": 0, | |
| "base_shipping_amount": 0, | |
| "base_shipping_discount_amount": 0, | |
| "base_shipping_discount_tax_compensation_amnt": 0, | |
| "base_shipping_incl_tax": 0, | |
| "base_shipping_tax_amount": 0, |
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 | |
| # scp-speed-test.sh | |
| # Author: Alec Jacobson alecjacobsonATgmailDOTcom | |
| # http://www.alecjacobson.com/weblog/?p=635 | |
| # | |
| # Test ssh connection speed by uploading and then downloading a 10000kB test | |
| # file (optionally user-specified size) | |
| # | |
| # Usage: | |
| # ./scp-speed-test.sh user@hostname [test file size in kBs] |
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 | |
| const LOAD_CACHED_MODEL_KEY_PREFIX = 'cached_model'; | |
| /* Usage: */ | |
| $specificCmsBlock = Mage::helper('customization')->loadCachedReadOnlyModel('cmsBlockId', 'cms/block'); | |
| /** | |
| * Caching model in Magento. | |
| * After being fetched from cache model is supposed to be read-only | |
| * Not tested yet what happens if save() is triggered on model after is is gotten from cache |
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 | |
| /** | |
| * Script for getting statistics information from server | |
| * To view the content in json _GET parameter "show" should be specified | |
| * To view the content in pretty format _GET parameter/value "show=pretty" should be specified | |
| */ | |
| /** | |
| * Error reporting | |
| */ |