Skip to content

Instantly share code, notes, and snippets.

View yangtheman's full-sized avatar
🏠
Working from home

yangtheman

🏠
Working from home
View GitHub Profile
@yangtheman
yangtheman / gist:3385289
Created August 18, 2012 08:24
/etc/nginx/nginx.conf
user www-data;
worker_processes 10;
pid /var/run/nginx.pid;
events
{
worker_connections 1024;
@yangtheman
yangtheman / gist:3161137
Created July 22, 2012 21:56
Brew install ntfs-3g lion
newshinymac:~ yangtheman$ /Developer/usr/bin/xcodebuild -version
Xcode 4.2
Build version 4D199
newshinymac:~ yangtheman$ brew install ntfs-3g
==> Installing ntfs-3g dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.27 --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig
==> make
==> make check
@yangtheman
yangtheman / gist:1625856
Created January 17, 2012 09:30
Kidsruby on Ubuntu
# http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
sudo apt-get install build-essential git-core curl
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
source .bashrc
@yangtheman
yangtheman / kidsruby_installer.sh
Created January 17, 2012 06:26 — forked from patrickgombert/kidsruby_installer.sh
Kids Ruby Ubuntu Installer
#!/bin/bash
echo "Installing Kids Ruby!"
sudo apt-get install git
# rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo `export PATH="$HOME/.rbenv/bin:$PATH"` >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile