Skip to content

Instantly share code, notes, and snippets.

@lifepillar
lifepillar / gist:10601324
Created April 13, 2014 20:38
php56-opcache fails to build
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/local/opt/autoconf/bin/autoheader" /usr/local/Cellar/php56/5.6.0-beta.1/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
==> ./configure --prefix=/usr/local/Cellar/php56-opcache/7.0.3 --with-php-config=/usr/local/Cellar/php56/5.6.0-beta.1/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking whether the C compiler works... yes
@lifepillar
lifepillar / gist:8b8e7f700e1a54d83b2e
Last active August 29, 2015 14:08
`brew install php56 --with-imap --with-fpm` causes `php-fpm` to crash at runtime on Yosemite.
Process: php-fpm [87459]
Path: /usr/local/Cellar/php56/5.6.2/sbin/php-fpm
Identifier: php-fpm
Version: 0
Code Type: X86-64 (Native)
Parent Process: php-fpm [87431]
Responsible: php-fpm [87431]
User ID: 501
Date/Time: 2014-10-27 20:50:18.577 +0100
@lifepillar
lifepillar / gist:c1f26492b5c4ad953db7
Created June 13, 2015 20:12
PHP installed with `brew install php56 --with-enchant --with-imap` causes `<?php phpinfo(); ?>` to segfault
Process: php-fpm [83780]
Path: /usr/local/Cellar/php56/5.6.10/sbin/php-fpm
Identifier: php-fpm
Version: 0
Code Type: X86-64 (Native)
Parent Process: php-fpm [83778]
Responsible: php-fpm [83778]
User ID: 501
Date/Time: 2015-06-13 22:06:39.140 +0200
@lifepillar
lifepillar / Ledger.plist
Created January 11, 2012 23:25
Ledger (http://ledger-cli.org) syntax coloring for TextWrangler
<!-- Gleefully brought to you by Lifepillar -->
<!-- Version 1.0.1 -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMColorsSyntax</key> <true/>
<key>BBLMIsCaseSensitive</key> <false/>
@lifepillar
lifepillar / brew-install-r-fails
Created October 15, 2012 11:38
“brew install r” error: dyld: Symbol not found: _rl_sort_completion_matches
brew install -v r
==> Downloading http://cran.r-project.org/src/base/R-2/R-2.15.1.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/r-2.15.1.tar.gz
/usr/bin/tar xf /Users/me/Library/Caches/Homebrew/r-2.15.1.tar.gz
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> ./configure --prefix=/usr/local/Cellar/r/2.15.1 --with-aqua --enable-R-framework --with-lapack
./configure --prefix=/usr/local/Cellar/r/2.15.1 --with-aqua --enable-R-framework --with-lapack
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
@lifepillar
lifepillar / Rakefile
Created November 3, 2012 22:29
Rake tasks for simple personal reporting in Ledger
# -*- coding: utf-8 -*-
# 2012-11-12
require 'rubygems' if RUBY_VERSION < "1.9"
require 'shellwords'
DEFAULT_CURRENCY = '$'
ASSETS = '^asset'
LIABILITIES = '^liab'
CREDIT_CARD = 'liabilities:credit card'
INCOME = '^income'
@lifepillar
lifepillar / gist:bc924c40438378635aee
Created November 13, 2015 23:39
PHP installed with `brew install php70 --with-enchant --with-imap` causes `<?php phpinfo(); ?>` to segfault
Process: php-fpm [11113]
Path: /usr/local/Cellar/php70/7.0.0-rc.7/sbin/php-fpm
Identifier: php-fpm
Version: 0
Code Type: X86-64 (Native)
Parent Process: php-fpm [11110]
Responsible: php-fpm [11113]
User ID: 501
Date/Time: 2015-11-14 00:37:22.508 +0100
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.12)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.2.2)
daemons (1.1.9)
em-websocket (0.5.0)
eventmachine (>= 0.12.9)
@lifepillar
lifepillar / gist:7153442
Created October 25, 2013 11:49
Output of brew uninstall apple-gcc42; brew install -v apple-gcc42 mariadb on OS X Mavericks (see http://github.com/mxcl/homebrew/issues/23580).
brew uninstall apple-gcc42; brew install -v apple-gcc42 mariadb
Error: No such keg: /usr/local/Cellar/apple-gcc42
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg
Already downloaded: /Library/Caches/Homebrew/apple-gcc42-4.2.1-5666.3.pkg
/usr/bin/xar -xf /Library/Caches/Homebrew/apple-gcc42-4.2.1-5666.3.pkg
mv *.pkg/Payload Payload.gz
ls | grep -v Payload | xargs rm -r
pax --insecure -rz -f Payload.gz -s ',./usr,/usr/local/Cellar/apple-gcc42/4.2.1-5666.3,'
==> Cleaning
rm: /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/lib/gcc/i686-apple-darwin11/4.2.1/x86_64/libgfortranbegin.la
Process: vim [719]
Path: /usr/local/Cellar/vim/8.0.0046/bin/vim
Identifier: vim
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [656]
Responsible: vim [719]
User ID: 501
Date/Time: 2016-10-26 21:22:10.483 +0200