Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
load 'config/deploy' | |
desc "FTP Sync" | |
namespace :deploy do | |
desc "Sync and compile to remote by default" | |
task :default do | |
#assets.sprite | |
#assets.compile | |
remote.default |
document.getElementsByTagName('button')[0].onclick = function () { | |
scrollTo(document.body, 0, 1250); | |
} | |
function scrollTo(element, to, duration) { | |
var start = element.scrollTop, | |
change = to - start, | |
currentTime = 0, | |
increment = 20; | |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
<?php | |
use OAuth\Common\Consumer\Credentials; | |
use OAuth\Common\Http\Client\ClientInterface; | |
use OAuth\Common\Http\Exception\TokenResponseException; | |
use OAuth\Common\Http\Uri\Uri; | |
use OAuth\Common\Http\Uri\UriInterface; | |
use OAuth\Common\Storage\TokenStorageInterface; | |
use OAuth\OAuth1\Service\AbstractService; | |
use OAuth\OAuth1\Signature\SignatureInterface; |
var CSV = require('oh-csv'); | |
process.stdout.write( | |
'<?xml version="1.0" encoding="UTF-8"?>' + '\r\n' + | |
'<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"' + '\r\n' + | |
' xmlns:dsq="http://www.disqus.com/" xmlns:dc="http://purl.org/dc/elements/1.1/"' + '\r\n' + | |
' xmlns:wp="http://wordpress.org/export/1.0/">' + '\r\n' + | |
' <channel>' + '\r\n' | |
); |
sudo pip install -I ansible==1.9.0.1 |
<?php | |
class Orchid_CouponFix_Model_Observer | |
{ | |
public function cancel($observer) | |
{ | |
$resource = Mage::getModel('core/resource'); | |
$db = $resource->getConnection('core_write'); | |
$event = $observer->getEvent(); | |
$order = $event->getPayment()->getOrder(); | |
if ($order->canCancel()) { |