Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
diff --git a/Makefile.global b/Makefile.global
index 3a5b1c2..7450162 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -13,6 +13,8 @@ all: $(all_targets)
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+build-binaries: $(PHP_BINARIES)
+
@alanivey
alanivey / php53-opcache.sh
Last active August 29, 2015 14:11
Install opcache for PHP 5.3 or 5.4 in OS X with Homebrew
brew install -v php53-opcache
sed -i '' "s|^\(opcache\.memory_consumption[[:space:]]*=[[:space:]]*\)[0-9]*|\1256|;" $(brew --prefix)/etc/php/5.3/conf.d/ext-opcache.ini
@alanivey
alanivey / etc__cron.daily__drush-update
Last active August 29, 2015 14:07
Global self-updating Drush on CentOS 6
#!/bin/bash
COMPOSERDIR="/usr/local/bin"
COMPOSERNAME="composer"
DRUSHDIR="/usr/local/share/drush"
# Keep Composer up to date
if [[ ! -x $COMPOSERDIR/$COMPOSERNAME ]]; then
/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php -- --install-dir="$COMPOSERDIR" --filename="$COMPOSERNAME" >/dev/null
elif [[ -f $COMPOSERDIR/$COMPOSERNAME ]]; then
@alanivey
alanivey / 0_reuse_code.js
Created May 9, 2014 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
; The blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
; Files are usually triggered by one of the following three reasons:
; 1) Directories that contain auto generated code, like Smarty or ZFW cache.
; 2) Code that does not work well when accelerated, due to some delayed
; compile time evaluation.
; 3) Code that triggers an OPcache bug.
@alanivey
alanivey / gist:11254591
Created April 24, 2014 13:29
tuntap and iodine on OS X 10.9 with Homebrew
brew install tuntap
sudo cp -pR $(brew --prefix tuntap)/Library/Extensions/tap.kext /Library/Extensions/
sudo cp -pR $(brew --prefix tuntap)/Library/Extensions/tun.kext /Library/Extensions/
sudo chown -R root:wheel /Library/Extensions/tap.kext
sudo chown -R root:wheel /Library/Extensions/tun.kext
sudo touch /Library/Extensions/
sudo cp -pR $(brew --prefix tuntap)/tap /Library/StartupItems/
sudo chown -R root:wheel /Library/StartupItems/tap
sudo cp -pR $(brew --prefix tuntap)/tun /Library/StartupItems/
sudo chown -R root:wheel /Library/StartupItems/tun