Skip to content

Instantly share code, notes, and snippets.

View ottonet's full-sized avatar

Jean-Paul Otto ottonet

View GitHub Profile
@ottonet
ottonet / makemod
Last active April 12, 2023 14:57
osx compatible magento modman generator
for i in `find . -type f | grep -v \.git | grep -v \.DS_Store | grep -v "^.$" | grep -v "modman" | grep -v "composer.json" | grep -v \.txt | grep -v \.pdf | sed 's/\.\///'`; do echo ${i} ${i}; done > modman
@ottonet
ottonet / makemod
Last active August 29, 2015 14:08
Generate Modman file for Magento (works great for templates, less great for modules/extensions)
(declare -a tt && tt=( app/design app/code app/etc app/locale skin/adminhtml skin/frontend ) &&\
for t in "${tt[@]}"; do tree -fi -L 3 --noreport $t | awk 'NR > 2 { print $0 " " $0 }'; done)\
> modman
@ottonet
ottonet / Zzzz.xml
Last active September 28, 2016 09:52
Disable Unwanted Magento Core Modules
<?xml version="1.0"?>
<config>
<modules>
<Mage_Downloadable>
<active>false</active>
</Mage_Downloadable>
<Mage_Authorizenet>
<active>false</active>
</Mage_Authorizenet>
<Mage_Usa>