Skip to content

Instantly share code, notes, and snippets.

View jamesmoey's full-sized avatar

James Moey jamesmoey

  • Sydney Australia
View GitHub Profile
@jamesmoey
jamesmoey / compilePhp.sh
Last active December 18, 2015 11:59
Compile PHP from source code, install common pecl and pear component
yum install -y libicu-devel gmp-devel libpng-devel libjpeg-devel curl-devel libxml2-devel libmcrypt-devel ImageMagick-devel libtool-ltdl-devel libzip-devel openssl-devel
PREFIX=/opt/php-5.4; (./configure --prefix=$PREFIX --with-config-file-scan-dir=$PREFIX/etc/conf.d --with-config-file-path=$PREFIX/etc --enable-bcmath --with-curl --enable-debug --enable-zip --with-pdo-mysql=mysqlnd --with-mysql=mysqlnd --with-freetype-dir=/usr/include/freetype2/freetype --with-mysqli=mysqlnd --with-mcrypt --enable-mbstring --enable-intl --with-gd --enable-fpm --with-gmp --enable-soap --enable-sockets --with-openssl --with-zip --with-zlib --enable-pcntl --with-bz2 --enable-ftp --enable-gd-native-ttf && nice make && make install) | tee build.log
./pecl channel-update pecl.php.net
./pecl install mongo xdebug memcache apc imagick amqp gnupg ssh2
./pear clear-cache
./pear config-set auto_discover 1
@jamesmoey
jamesmoey / EasyDateColumn.js
Last active December 18, 2015 03:29
Ext grid date column with date formatting for human.
/**
* Ext grid column for formatting date that is human friendly.
*/
Ext.define('Ms.EasyDateColumn', {
extend: 'Ext.grid.column.Column',
alias: ['widget.easydatecolumn'],
requires: ['Ext.Date'],
/**
* @cfg {String} recentFormat