Skip to content

Instantly share code, notes, and snippets.

@lucasgameiro
lucasgameiro / install_mcrypt.sh
Last active April 12, 2020 18:57 — forked from n3b/install_mcrypt.sh
Script for installing mcrypt.so extension for PHP 5.3 PHP for OS X 10.8 Mountain Lion
#!/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
@lucasgameiro
lucasgameiro / ishostmethod.js
Last active December 9, 2015 19:58 — forked from julsfelic/gist:3884147
Crockford isHostMethod
function isHostMethod(object, property) {
var t = typeof object[property];
return t=='function' ||
(!!(t=='object' && object[property])) ||
t=='unknown';
}
#
# 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