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
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
<?php | |
/* | |
* A demonstration of first-class functions in PHP. | |
* Blog post: http://www.sbisbee.com/blog.php?id=2352301864 | |
* | |
* By Sam Bisbee <www.sbisbee.com> on 2010-12-17 | |
*/ | |
function makeLouder($fn) | |
{ |
<?php | |
namespace BlackRook\TaskBundle\Twig\Extension; | |
use DateTime, | |
Twig_Extension, | |
Twig_Environment, | |
Twig_TemplateInterface, | |
Twig_Error_Runtime, | |
Twig_Filter_Method; |
language: php | |
php: | |
- 5.3 | |
- 5.4 | |
before_script: | |
- sudo apt-get install apache2 | |
- sudo a2enmod actions | |
- sudo a2enmod rewrite |
rsync (Everyone seems to like -z, but it is much slower for me)
# amazon.rb - amazon affiliate links for jekyll | |
# assumes that you have a configuration variable called 'amazon_associate_id' with your associate id | |
# usage: {{ asin | amazon_product_href }} | |
# returns url of a product | |
# usage: {{ asin | amazon_image_href: 'M' }} | |
# returns image of the product, size argument can be S, M, or L, default M | |
# usage: {{ asin | amazon_product: 'A Product' }} |
#!/bin/sh | |
# exit on any errors: | |
set -e | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 @pantheon-alias" | |
exit 1 | |
fi |
#!/usr/bin/php | |
<?php | |
$input = file_get_contents('php://stdin'); | |
preg_match('|^To: (.*)|', $input, $matches); | |
$filename = tempnam('/var/log/mail', date('ymd-his-') . $matches[1] . '.'); | |
file_put_contents($filename, $input); |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :