Skip to content

Instantly share code, notes, and snippets.

View tomakun's full-sized avatar
💻
Diving into Mastodon

Thomas Soubrier tomakun

💻
Diving into Mastodon
View GitHub Profile
@idleberg
idleberg / Install-Mcrypt.md
Last active May 31, 2023 17:13
Install Mcrypt on macOS

Setup php-mcrypt on macOS (and versions of Mac OS X)

These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.

Install

Install Mcrypt using Homebrew and PECL (comes with PHP)

# PHP 7.3
@mklooss
mklooss / Observer.php
Created January 9, 2014 08:32
Magento: add layout xml via event to add the layout file direct before local.xml
<?php
class Loewenstark_Layout_Model_Observer
{
// set loewenstark_layout.xml before local.xml
public function addLayoutXml($event)
{
$xml = $event->getUpdates()
->addChild('loewenstark_layout');
/* @var $xml SimpleXMLElement */