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/sh | |
# Script for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion) | |
# Initially forked from https://gist.github.com/n3b/4060272 | |
if [ -z "$PHP_AUTOCONF" ]; then | |
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz | |
tar xzf autoconf-latest.tar.gz | |
cd autoconf-* | |
./configure --prefix=/usr/local |
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
function isHostMethod(object, property) { | |
var t = typeof object[property]; | |
return t=='function' || | |
(!!(t=='object' && object[property])) || | |
t=='unknown'; | |
} |
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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |