Skip to content

Instantly share code, notes, and snippets.

View perichus's full-sized avatar
👹
Doing things

Pedro García Navarro perichus

👹
Doing things
View GitHub Profile
@harlesc
harlesc / PHP7 Magento 1.9 core patch.md
Last active April 9, 2017 20:31
Patch to get Magento 1.9 working with >= PHP 7.0.0 RC 6

Patch using method below or if you don't want to patch a core file, see this Magento extension that does the same thing but correctly overrides the core file:
https://github.com/MageMechanic/PhpSeven

# run in magento root directory

# one-liner to apply patch using wget
wget -qO- 'https://gist.githubusercontent.com/MageMechanic/66449504110fbbd96214/raw/php7_magento_1_9_core.patch' | patch -p0

# one-liner to apply patch using curl
@manelio
manelio / gist:5791101c513bf2d5d531
Created November 12, 2014 11:40
Magento performance: getSortedAttributes caching
Core optimization I:
Test:
url: http://myproject.com.local/ (a catalog page that loads 111 products)
Before:
Total Incl. Wall Time (microsec): 34,340,233 microsecs
Number of Function Calls: 10,098,542
@SchumacherFM
SchumacherFM / Magento-HHVM.md
Last active May 17, 2018 18:26
Running Magento Enterprise Edition with Facebook HipHop HHVM

Running Magento Enterprise Edition with Facebook HipHop HHVM

Prerequisites

Hardware

MacBook Air (MBA) Mid 2012