Skip to content

Instantly share code, notes, and snippets.

View ablyler's full-sized avatar

Andy Blyler ablyler

View GitHub Profile
@ablyler
ablyler / gist:2023237
Created March 12, 2012 16:42
mysql-5.5.20 fails due to: libsql.a(sha2.cc.o) has no symbols
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.20.tar.gz
File already downloaded in /Users/ablyler/Library/Caches/Homebrew
/usr/bin/tar xf /Users/ablyler/Library/Caches/Homebrew/mysql-5.5.20.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file scripts/mysqld_safe.sh
patching file scripts/mysql_config.sh
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.5.20/share/doc/mysql -DINSTALL_INFODIR=/usr/local/Cellar/mysql/5.5.20/share/info -DINSTALL_MYSQLSHAREDIR=share/mysql -DWITH_SSL=yes -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DSYSCONFDIR=/usr/local/etc -DWITH_UNIT_TESTS=OFF -DWITH_READLINE=yes
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.5.20/
@ablyler
ablyler / .profile.notams
Created March 21, 2012 20:26
notams for KARB (thanks andyfowler)
alias notams='curl -s "https://pilotweb.nas.faa.gov/PilotWeb/notamRetrievalByICAOAction.do?method=displayByICAOs&formatType=DOMESTIC&retrieveLocId=karb&reportType=RAW&actionType=notamRetrievalByICAOs" | tr -d "\n" | pcregrep -M -o1 -N CRLF -i "<pre>([^<]*)"'
#!/usr/bin/env php
<?php declare(strict_types=1);
assert(extension_loaded('ast'),
"The php-ast extension must be loaded in order for Phan to work. See https://github.com/etsy/phan#getting-it-running for more details.");
assert((int)phpversion()[0] >= 7,
"Phan requires PHP version 7 or greater. See https://github.com/etsy/phan#getting-it-running for more details.");
// Grab these before we define our own classes
$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install https://gist.github.com/raw/88a77381db8fb718bdc0/a2cd80c4ce62a320301443e551566a973cf7fa49/gource.rb
/usr/bin/curl -f#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.8.2) https://gist.github.com/raw/88a77381db8fb718bdc0/a2cd80c4ce62a320301443e551566a973cf7fa49/gource.rb -o /Library/Caches/Homebrew/Formula/gource.rb
######################################################################## 100.0%
==> Downloading http://gource.googlecode.com/files/gource-0.39.tar.gz
Already downloaded: /Library/Caches/Homebrew/gource-0.39.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/gource-0.39.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file configure
Hunk #1 succeeded at 7198 with fuzz 2.
@ablyler
ablyler / homebrew.mxcl.nginx.plist
Created February 15, 2013 15:22
/Library/LaunchDaemons/homebrew.mxcl.nginx.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>homebrew.mxcl.nginx</string>
<key>ProgramArguments</key>
<array>
commit 77c607e6348c4cd603ffdd61356b0161d3a15eca
Author: Andy Blyler <andy@blyler.cc>
Date: Wed Aug 21 13:26:02 2013 +0000
add percona-server 5.6 ebuild and required eclass changes
diff --git a/dev-db/percona-server/Manifest b/dev-db/percona-server/Manifest
index 0bc083f..9019a15 100644
--- a/dev-db/percona-server/Manifest
+++ b/dev-db/percona-server/Manifest
<?php
$db = new SQLite3('file:memdb1?mode=memory&cache=shared');
$db->exec('CREATE TABLE foo (bar STRING)');
$db->exec("INSERT INTO foo (bar) VALUES ('This is a test')");
$result = $db->query('SELECT bar FROM foo');
var_dump($result->fetchArray());
Andys-MacBook-Pro :: ~ » php /tmp/test.php
array(2) {
[0] =>
string(14) "This is a test"
'bar' =>
string(14) "This is a test"
}
diff --git a/memcached-2.1.0/ChangeLog b/memcached-2.1.0/ChangeLog
index 9a7280d..3502e19 100644
--- a/memcached-2.1.0/ChangeLog
+++ b/memcached-2.1.0/ChangeLog
@@ -41,8 +41,6 @@ Version 2.0.0b2
Version 2.0.0b1
---------------
- * Change the return value for non-existing keys to be NULL rather than
- 'false', affects simple get only