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
Accordion.prototype.sectionClicked = Accordion.prototype.sectionClicked.wrap( | |
function(callOriginal, event) { | |
// ... | |
return callOriginal(event); | |
} | |
); |
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
//169.254.146.140/www /var/www cifs soft,nounix,noperm,gid=0,uid=0,file_mode=0777,dir_mode=0777,credentials=/etc/cifspwd 0 0 | |
password=haslo | |
domain=medio.local | |
http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox |
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 | |
$order = Mage::getModel('sales/order')->loadByIncrementId("increment_id"); | |
//shipping cost | |
$shippingCost = $order->getShippingAmount(); | |
//shipping cost in base currency | |
$shippingBaseCost = $order->getBaseShippingAmount(); | |
//shipping tax | |
$shippingTax = $order->getShippingTaxAmount(); | |
//shipping tax in base currenty |
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
name = Taxonomy page | |
description = Override taxonomy term page. | |
package = Custom | |
version = 7.x-1.0 | |
core = 7.x | |
dependencies[] = taxonomy |
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 | |
set_time_limit(600); | |
define('MAGENTO_ROOT', getcwd()); | |
$compilerConfig = MAGENTO_ROOT . '/includes/config.php'; | |
if (file_exists($compilerConfig)) { | |
include $compilerConfig; | |
} |
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
awk -F',' -v OFS=',' '$25 ~ /3/ { $25 = "2"; }1' file.csv |
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
$installer->addAttribute('catalog_product', "shirt_size", array( | |
'type' => 'int', | |
'input' => 'select', | |
'label' => 'Shirt Size', | |
'sort_order' => 1000, | |
'required' => false, | |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, | |
'backend' => 'eav/entity_attribute_backend_array', | |
'option' => array ( | |
'values' => array( |
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
UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin'; |
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
/** | |
* Rewrite environment variables with REDIRECT_ prefix. | |
*/ | |
foreach ($_SERVER as $env => $value) { | |
$left = substr($env, 0, 9); | |
$env = ltrim($env, $left); | |
if ($left == 'REDIRECT_' && !isset($_SERVER[$env])) { | |
$_SERVER[$env] = $value; | |
} | |
} |
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 'app/Mage.php'; | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$customer = Mage::getModel('customer/customer'); | |
$customer->setPassword('admin123'); | |
$customer->save(); |