This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "{" | |
echo "\"_comment\": \"Valid terminals include: 'Terminal.app' or 'iTerm'\"," | |
echo "\"terminal\": \"iTerm\"," | |
echo "\"hosts\": [" | |
echo "{" | |
echo "\"name\": \"Vagrant\"," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# backup | |
innobackupex --no-timestamp /var/lib/mysql-backup/full | |
innobackupex --no-timestamp --incremental /var/lib/mysql-backup/incremental1 --incremental-basedir=/var/lib/mysql-backup/full | |
innobackupex --no-timestamp --incremental /var/lib/mysql-backup/incremental2 --incremental-basedir=/var/lib/mysql-backup/incremental1 | |
innobackupex --no-timestamp --incremental /var/lib/mysql-backup/incremental3 --incremental-basedir=/var/lib/mysql-backup/incremental2 | |
#prepare incrementals into full | |
innobackupex --apply-log --redo-only /root/backup/full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tungsten-slave-createcachetables.sh | |
# Tungsten is not extracting data for the following pattern (Drupal 6 and 7): | |
# replicator.filter.replicate.ignore=*.access,*.cache,*.cache_*,*.ctools_*_cache,*.views_*_cache,*.sessions,*.watchdog | |
# This means that the tables would not exist on the slave. It would be ideal to have | |
# the tables exist, but be empty. | |
# This script will create empty tables for any table matching the pattern in 'grep' commands below. | |
# It is manually set to match the same replicator.filter.replicate.ignore in the tungsten config. |