This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for @xiamz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install python-software-properties python g++ make | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
npm install -g coffee-script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get -y install vim curl git build-essential | |
# sudo dpkg --configure -a --force-all | |
# sudo apt-get clean | |
# sudo apt-get update | |
# Depolyment Server Only | |
# ssh-keygen -t rsa -C "[email protected]" | |
# cat ~/.ssh/id_rsa.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar zxvf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
./configure | |
make | |
make altinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y gcc | |
yum install -y git | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source /etc/profile.d/rvm.sh | |
yum install -y python-devel | |
rvm pkg install zlib | |
rvm install 1.9.3 | |
gem install bundler | |
yum install -y libicu-devel | |
git clone git://github.com/baoshan/linguist_http.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-A INPUT -m state --state NEW -m tcp -p tcp -s 50.56.227.0/0 --dport 8080 -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yum list \*openssl\* | |
yum install -y openssl098e | |
yum install -y zlib | |
ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8 | |
ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8 | |
ln -s /lib64/libbz2.so.1 /lib64/libbz2.so.1.0 | |
wget https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux64.tar.bz2 | |
tar -xf pypy-1.8-linux64.tar.bz2 | |
cp -r pypy-1.8 /opt | |
ln -s /opt/pypy-1.8/bin/pypy /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Suppose the system is up-to-dated, otherwise: | |
# sudo yum update -y | |
yum install -y gcc | |
version=2.4.11 | |
wget http://redis.googlecode.com/files/redis-$version.tar.gz | |
tar -xf redis-$version.tar.gz | |
cd redis-$version | |
make | |
make install | |
mkdir -p /etc/redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o /Library/LaunchDaemons/org.redis.redis-server.plist https://gist.github.com/raw/2475316/45fb490829e5539e6e2476f7d5117fc88b59acf7/org.redis.redis-server.plist | |
sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist | |
sudo launchctl start org.redis.redis-server |