Skip to content

Instantly share code, notes, and snippets.

View abenevaut's full-sized avatar
🤯
Boum Headshot! Boum Headshot! Boum Headshot!!!

Antoine B. abenevaut

🤯
Boum Headshot! Boum Headshot! Boum Headshot!!!
View GitHub Profile
git push origin <refs/tags/old-tag>:<refs/tags/new-tag> :<refs/tags/old-tag> && git tag -d <old-tag>

Filename: core/Common.php Line Number: 257

BEFORE

return $_config[0] =& $config; 

AFTER

$_config[0] =&amp; $config;
@abenevaut
abenevaut / AdministratorMailableChannel.php
Last active November 30, 2017 19:46
A Laravel 5 channel to send Mailable notifications to administrator
<?php
namespace abenevaut\App\Notifications\Channels;
use Illuminate\Notifications\Notification;
class AdministratorMailableChannel implements MailableChannelInterface
{
/**

Startup options

-novid -console -tickrate 128 -high +cl_forcepreload 1 -nojoy

remove all sound cache

cl_rebuildaudiocache

Install phpbrew && php 7.1.32 on macOS

xcode-select --install

# You should install brew https://brew.sh/index_fr
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gmp libevent zlib libzip bzip2 imagemagick pkg-config
brew link icu4c
brew link --force openssl
brew link --force libxml2

Install phpbrew && php 7.2.23 on macOS

xcode-select --install

# You should install brew https://brew.sh/index_fr
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gmp libevent zlib libzip bzip2 imagemagick pkg-config
brew link icu4c
brew link --force openssl
brew link --force libxml2

Install phpbrew && php 7.3.10 on macOS

xcode-select --install

# You should install brew https://brew.sh/index_fr
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gd gmp libevent zlib libzip bzip2 imagemagick pkg-config
brew link icu4c
brew link --force openssl
brew link --force libxml2

Install brew nginx with phpbrew php-fpm 7.3.10 on macOS (this installation allows to run nginx and php-fpm (from phpbrew) as root but chrooted with the current user - take care if there is multiple developper account on mac, that will potentially make trouble between accounts).