Skip to content

Instantly share code, notes, and snippets.

View PhilETaylor's full-sized avatar

Phil E. Taylor PhilETaylor

View GitHub Profile
PhilETaylor /
Created December 30, 2017 16:50 — forked from palpalani/
Installing Redis, Hiredis on Ubuntu 14.04
echo "--------------------------------------------------------------------------------------------"
echo "Installing Predis on Ubuntu 16.04"
echo "Read more:"
echo "Author: Ralf Rottmann | @ralf |"
echo "--------------------------------------------------------------------------------------------"
echo "Checking prerequisites..."
echo "Git available?"
[ ! -s /usr/bin/git ] && sudo apt-get -q -y install git || echo "Git already installed."
$ ssh <user>@<mac-without-screen>
$ sudo defaults write /var/db/launchd.db/ -dict Disabled -bool false
$ sudo launchctl load /System/Library/LaunchDaemons/
/System/Library/LaunchDaemons/ Service is disabled
$ sudo launchctl load -w /System/Library/LaunchDaemons/
PhilETaylor /
Last active December 18, 2017 16:04 — forked from pitpit/
Install Mailcatcher on OSX

Install MailCatcher (

brew install ruby
sudo gem install mailcatcher

Then set it a daemon:

 curl >>~/Library/LaunchAgents/me.mailcatcher.plist

then run

PhilETaylor / .htaccess
Created May 13, 2017 12:04 — forked from allysonsouza/.htaccess
Enabling PHP 7 on Hostgator trough htaccess
View .htaccess
# Habilitar o PHP 7.0
AddHandler application/x-httpd-php70 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php70/lib
PhilETaylor / masterplugin.php
Last active July 4, 2021 08:59 — forked from jneubauer/masterplugin.php
Joomla! plugin that fires all possible plugin events
View masterplugin.php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class PlgSystemMasterplug extends JPlugin
function onExtensionBeforeInstall(){
JLog::add(JText::_('onExtensionBeforeInstall'), JLog::WARNING);