Skip to content

Instantly share code, notes, and snippets.

@aaronjudd
aaronjudd / gist:4228870
Created December 6, 2012 21:57 — forked from davidalexander/gist:1086455
Magento Snippets

Magento Snippets

Download extension manually using pear/mage

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

Clear cache/reindex

<template name="imageUploader">
<h2>Picture</h2>
<p>
{{#each images}}
<img src="{{url}}" alt="">
<input type="button" value="remove" class="btnRemove"/>
{{else}}
No files uploaded.
{{/each}}
</p>
@aaronjudd
aaronjudd / methods.coffee
Last active August 29, 2015 14:04
Example use of Rocker Docker from remote application
Meteor.startup ->
if Meteor.settings.rockerSettings.mongoUser
@mongodbUrl = "mongodb://" + Meteor.settings.rockerSettings.mongoUser + ":" + Meteor.settings.rockerSettings.mongoPassword + "@" + Meteor.settings.rockerSettings.launchMongoDB
else
@mongodbUrl = "mongodb://" + Meteor.settings.rockerSettings.launchMongoDB
@replicaSet = "?replicaSet=" + Meteor.settings.rockerSettings.replicaSet
@authSource = "&authSource=admin"
Meteor.methods
@aaronjudd
aaronjudd / rename.sh
Created July 25, 2014 00:25
rename .less to import.less
for files in *.less
do
mv "$files" "${files%.less}.import.less"
done
@aaronjudd
aaronjudd / init-data.sh
Last active August 29, 2015 14:04
Example installation of Meteor in init-data.sh
#!/bin/bash
# Install required packages first
#
apt-get install -qq -y curl git gcc make build-essential imagemagick nodejs npm
curl https://install.meteor.com | /bin/sh
npm cache clean -f && npm install -g n && n 0.10.29
npm install --silent -g forever meteorite phantomjs
# Add your Meteor application to source and bundle it to run as node app
@aaronjudd
aaronjudd / Dockerfile
Created September 18, 2014 16:21
Meteor Dockerfile with imagemagick and phantomjs
############################################################
# Builds a Meteor 0.9.x+ application Docker image
#
# See: http://docs.docker.io/
#
# Important: Best to run from a clean directory that hasn't had meteor run in it.
# Important: packages/<pkg>/.npm and .build* should not exist
#
# Example usage:
# cd appdir #in app dir
@aaronjudd
aaronjudd / gist:17b08880ad5eb5e67a20
Created March 24, 2015 17:43
docker run reaction
docker run --rm -e ROOT_URL="http://localhost" \
-e METEOR_EMAIL="[email protected]" \
-e METEOR_USER="admin" \
-e METEOR_AUTH="password" \
-t ongoworks/reaction
@aaronjudd
aaronjudd / reaction-install.sh
Created October 9, 2015 20:45
reaction-local-install
curl https://install.meteor.com | /bin/sh
git clone https://github.com/reactioncommerce/reaction.git
cd reaction
meteor
@aaronjudd
aaronjudd / reaction-commerce-cla.md
Created December 11, 2015 20:21 — forked from jshimko/reaction-commerce-cla.md
Reaction Commerce - Contributor License Agreement (CLA)

Contributing to Ongo Works

Thank you for contributing code to Ongo Works and Reaction Commerce!

Like many open source projects, we need a Contributor License Agreement (CLA) from you before we can merge in your changes. You only need to fill out this agreement once. So bear with us, here comes the legalese.

In brief, by submitting your code to any Ongo Works and Reaction Commerce project, you are granting us a right to use that code under the terms of this Agreement, including providing it to others. You are also certifying that you wrote it, and that you are allowed to license it to us. You are not giving up your copyright in your work.

Contributor License Agreements are important because they define the chain of ownership of a piece of software. Some companies won't allow the use of free software without clear agreements around code ownership. That's why many open source projects collect similar agreements from contributors.