Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ryanzhou on github.
  • I am ryanzhou (https://keybase.io/ryanzhou) on keybase.
  • I have a public key whose fingerprint is 6BEE 0ACA 9F87 9A2E B41A 1DAA C1CB 5B42 2F5D A62E

To claim this, I am signing this object:

0xa4d1c4355ae6e254c1d1a2e0e47476fe9785b222
### Keybase proof
I hereby claim:
* I am zhoutong on github.
* I am ryanzhou (https://keybase.io/ryanzhou) on keybase.
* I have a public key whose fingerprint is 299E E0EC 866F 55E6 3A50 4D62 E997 4F11 D5A1 1257
To claim this, I am signing this object:
@ryanzhou
ryanzhou / pf.md
Last active October 21, 2019 03:52
Getting Pow to work in OS X Yosemite

Getting Pow to work in OS X Yosemite

Some parts taken from: https://gist.github.com/kujohn/7209628

ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.

1. Anchor file

Create file /etc/pf.anchors/pow

@ryanzhou
ryanzhou / ruby_install
Last active December 14, 2015 07:49
Install Ruby 2.0.0p0 along with relevant packages and set up deployer user
echo "Installing software packages..."
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev libmysqlclient-dev
echo "Downloading Ruby 2.0..."
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz | tar xz
cd ruby-2.0.0-p0
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.6)
actionpack (= 3.2.6)
mail (~> 2.4.4)
actionpack (3.2.6)
activemodel (= 3.2.6)
activesupport (= 3.2.6)
builder (~> 3.0.0)