Skip to content

Instantly share code, notes, and snippets.

View mokadev's full-sized avatar

Mohamed Kaïd mokadev

View GitHub Profile
@colinmollenhour
colinmollenhour / Package.php
Created April 12, 2012 03:44
Magento merged CS/JSS improvements
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
@colinmollenhour
colinmollenhour / cleanCache.php
Created May 17, 2012 00:50
Simplified cache cleaning script for production updates.
<?php
/**
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and
* then use this script to apply updates and refresh the config cache without
* causing a stampede on the config cache.
*
* @author Colin Mollenhour
*/
umask(0);
ini_set('memory_limit','512M');
@lazyguru
lazyguru / Magento2ValetDriver.php
Last active March 1, 2017 19:01
Borrowed from https://github.com/laravel/valet/pull/47 with fixes so that it runs from Magento root instead of pub directory. Put this in ~/.valet/Drivers/Magento2ValetDriver.php
<?php
class Magento2ValetDriver extends ValetDriver
{
/**
* Holds the MAGE_MODE from app/etc/config.php or $ENV
*
* @var string
*/