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
// Embedded in this article https://medium.com/p/c98e491015b6 | |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"time" | |
"github.com/graph-gophers/graphql-go" |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
$.validator.addMethod('isCorrectCaptcha', function(value, element, params){ | |
var is_valid = false; | |
$.ajax({ | |
url: '/udata/custom/isCorrectCaptcha/', | |
type: 'POST', | |
async: false, | |
data: { | |
captcha: value | |
}, | |
success: function(xml){ |
<?xml version="1.0" encoding="utf-8"?> | |
<selection> | |
<target result="objects"> | |
<type id="{1}" /> | |
</target> | |
<limit page="{3}">{2}</limit> | |
</selection> |
// Определяем зависимости в переменных | |
var gulp = require('gulp'), | |
cache = require('gulp-cache'), | |
clean = require('gulp-clean'), | |
stream = require('event-stream'), | |
size = require('gulp-size'), | |
jshint = require('gulp-jshint'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
minifyCSS = require('gulp-minify-css'), |
<? | |
// using model magento\app\code\core\Mage\Core\Model\Email\Template.php | |
public function send_error_email($error = NULL) { | |
$mailTemplate = Mage::getModel('core/email_template'); | |
$mailTemplate->setSenderName('Insert Sender Name'); // use general Mage::getStoreConfig('trans_email/ident_general/name'); | |
$mailTemplate->setSenderEmail('insert@sender.email'); // use general Mage::getStoreConfig('trans_email/ident_general/email') | |
$mailTemplate->setTemplateSubject('Insert Subject Title'); | |
$mailTemplate->setTemplateText('Insert Body Text'); |
<?php | |
/** | |
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!) | |
* but the usual tools were hitting the memory limit pretty quick. I found that | |
* manually parsing the XML worked pretty well. Note that this, most likely, | |
* won't work if cells contain anything more than text or a number (so formulas, | |
* graphs, etc ..., I don't know what'd happen). | |
*/ |