Skip to content

Instantly share code, notes, and snippets.

andysnell /
Created March 27, 2019 20:57
Pre-Commit Git Hook for SALT
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php`
# Determine if a file list is passed
if [ "$#" -eq 1 ]

Keybase proof

I hereby claim:

  • I am andysnell on github.
  • I am andysnell ( on keybase.
  • I have a public key ASBtcikHUwAsROsKrm9WhNPgUagoLCxUMgkx2u_A0rcvtwo

To claim this, I am signing this object:

sudo apt-get update
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get install -y php7.0
sudo apt-get update
sudo apt-get install -y php7.0-mysql libapache2-mod-php7.0 php-mbstring
sudo a2dismod php5
sudo a2enmod php7.0
sudo apachectl restart
andysnell /
Created September 19, 2016 20:25
SQL Server Driver Installer for Laravel Homestead
# SQL Server Driver Installer for Laravel Homestead
# This script downloads, compiles, and installs the PHP 7 extension
# files for both the native sqlsrv and the PDO pdo_sqlsrv drivers.
# Get the Microsoft Driver Source Code from Github
cd ~
git clone
cd msphpsql