Skip to content

Instantly share code, notes, and snippets.

View geekwho-eth's full-sized avatar

Geek Who geekwho-eth

View GitHub Profile
@geekwho-eth
geekwho-eth / gist:2780014
Created May 24, 2012 07:25 — 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
##Get product image##
<?php
@geekwho-eth
geekwho-eth / proxy_nginx.sh
Created May 24, 2012 07:24 — forked from rdegges/proxy_nginx.sh
Create a HTTP proxy for jenkins using NGINX.
sudo aptitude -y install nginx
cd /etc/nginx/sites-available
sudo rm default
sudo cat > jenkins
upstream app_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name