Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohamed Kaïd mokadev

View GitHub Profile
@colinmollenhour
colinmollenhour / Package.php
Created Apr 12, 2012
Magento merged CS/JSS improvements
View Package.php
<?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
Simplified cache cleaning script for production updates.
View cleanCache.php
<?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 Mar 1, 2017
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
View Magento2ValetDriver.php
<?php
class Magento2ValetDriver extends ValetDriver
{
/**
* Holds the MAGE_MODE from app/etc/config.php or $ENV
*
* @var string
*/