警告: 請絕對不要跳著裝!
- Software Update
- Install Xcode ( Mac OS X Install CD 那一塊的 >> 選擇安裝)
- Install Homebrew http://github.com/mxcl/homebrew
警告: 請絕對不要跳著裝!
| # on server | |
| if [ $TERM == "dumb" ] || [ $TERM == "vt102" ]; then | |
| export TERM="xterm-color" | |
| screen -RD | |
| fi | |
| # In irssi, /set term_charset big5 | |
| # Add client id_rsa.pub to your server .ssh/authorized_keys | |
| # use ssh://yourId@yourserver from Nally to login ;) | 
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # irb3 - Runs an IRB-esque prompt (but it's NOT really IRB!) over multiple | |
| # versions of Ruby at once (using RVM) | |
| # | |
| # By Peter Cooper, BSD licensed | |
| # | |
| # Main dependency is term-ansicolor for each impl: | |
| # rvm exec gem install term-ansicolor | 
http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/
| import urllib, urllib2, json | |
| ''' | |
| The ``FacebookTestUserManager`` module | |
| ====================================== | |
| Author: Weizhong Yang <zonble at gmail dot com> | |
| A tool which helps to create and delete test account for Facebook. | 
| [submodule "zsh-syntax-highlighting"] | |
| path = zsh-syntax-highlighting | |
| url = git://github.com/zsh-users/zsh-syntax-highlighting.git | 
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ | 
| git config --global alias.link '!f() { echo https://$(git config --get remote.origin.url | sed s/^[[:alpha:]]*@// | sed s/:/\\// | sed s/\\.git$//)/commit/$(git rev-parse ${1:-HEAD}); }; f' | |
| git config --global alias.linkc '!git link ${1:-HEAD} | pbcopy' | 
Hacking CORS restriction to enable in-browser XHR to any server.
Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.
Run:
| 'use strict'; | |
| var AWS = require('aws-sdk'); | |
| //var P = require('bluebird'); | |
| var aws_region = process.env['AWS_REGION'] ? process.env['AWS_REGION'] : 'us-west-2' | |
| var aws_profile = process.env['AWS_PROFILE'] ? process.env['AWS_PROFILE'] : 'default' | |
| AWS.CredentialProviderChain.defaultProviders = [ |