Skip to content

Instantly share code, notes, and snippets.

Configure

xdebug.ini

/etc/php/7.1/mods-available/xdebug.ini <--inside the vagrant box

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
<?php
/**
* Drop this into the shell directory in the Magento root and run with -h to see all options.
*/
require_once 'abstract.php';
/**
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints.
@roscius
roscius / gist:3739457
Created September 17, 2012 20:05 — 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

@roscius
roscius / git_remote_branches.sh
Created May 20, 2012 20:12 — forked from thisivan/git_remote_branches.sh
Git: Track Remote Branches
# Create new remote branch
git push origin origin:refs/heads/new_branch_name
# Make sure everything is updated
git fetch origin
# Check your branch has been created
git branch -r
# Track a remote branch