Skip to content

Instantly share code, notes, and snippets.

@Alfr0475
Alfr0475 / node.sh
Created October 8, 2013 05:45
nvm と指定されたバージョンの Node.js がインストール済みの場合だけ設定を有効にする
if [[ -f ~/.nvm/nvm.sh ]]; then
source ~/.nvm/nvm.sh
alias shasum='sha1sum'
if which nvm >/dev/null 2>&1 ;then
_nodejs_use_version="v0.8.16"
if nvm ls | grep -F -e "${_nodejs_use_version}" >/dev/null 2>&1 ;then
nvm use "${_nodejs_use_version}" >/dev/null
export NODE_PATH=${NVM_PATH}_modules${NODE_PATH:+:}${NODE_PATH}
fi
@Alfr0475
Alfr0475 / 5.2.17
Created October 8, 2013 02:40
php-buildで5.2.17にphp-fpmのパッチをあててインストール
configure_option "--enable-fastcgi"
configure_option -R "--with-mysql"
configure_option -R "--with-mysqli"
configure_option -R "--with-pdo-mysql"
with_pear
#install_package "http://museum.php.net/php5/php-5.2.17.tar.bz2"