Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<?php | |
/** | |
* Get download link of a Magento extension from MagentoConnect key | |
* | |
* Dependencies: Zend_Http_Client, Zend_Uri (Zend Framework) | |
*/ | |
class Narno_Mage_Extension | |
{ | |
protected $_key = null; |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
rsync (Everyone seems to like -z, but it is much slower for me)
# Initial setup | |
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name | |
cd project-name | |
git checkout --orphan master | |
git commit -m "Initial commit" | |
# Pulling changes | |
git fetch framework | |
git merge --squash -m "Upgrade Laravel" framework/develop | |
# Fix merge conflicts if any and commit |
<?php | |
class BaseController extends Controller { | |
private $application_name = 'The Cool Kid'; | |
protected $layout = 'base'; | |
// The cool kids' way of handling page titles. | |
protected $title = array( | |
'parent' => '', | |
'seperator' => '::', |
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<!-- ############# GLOBAL LAYOUT UPDATES ############# --> | |
<default> | |
<!-- Remove unwanted blocks entirely | |
<remove name="right.poll"/> | |
<remove name="right.permanent.callout"/> |
tar -zcvf var/backups/media_$(date +%d%m%Y).tar.gz --exclude-vcs --exclude='*cache*' --exclude='captcha' --exclude='wysiwyg/.thumbs' --exclude='tmp' --exclude='import' --exclude='export' --exclude='js' --exclude='js_secure' --exclude='css' --exclude='css_secure' media/ |
[ | |
{ | |
"command": "escape" | |
}, | |
{ | |
"command": "expand_selection", | |
"args": {"to": "word"} | |
}, | |
{ | |
"command": "copy" |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
Application initialization My video "Under the hood of Magento": http://www.youtube.com/watch?v=M10RR9acNE8 (watch in 1080p)
Front Controller These articles both cover in greater depth how the Front controller is initiated and how routers are selected. http://www.andreiboar.com/magento/magento-front-controller/ http://blog.belvg.com/magento-front-controller-pattern.html
URL rewrites These articles describe how url paths are formatted, where theyre located, and how theyre used by routers. As well as ... dun dun dunnn .. how the catalog url rewrite indexer works.