xcode-select --install
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
xcode-select --install
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
| /* | |
| * Copyright (C) 2016 DOU Networks Co., Ltd - All Rights Reserved | |
| * Unauthorized copying of this file, via any medium is strictly prohibited | |
| * Proprietary and confidential | |
| * Written by luc <[email protected]>, September 17, 2016 | |
| */ | |
| package vn.ltv.demo.poi; | |
| import org.apache.poi.ss.usermodel.*; | |
| import org.apache.poi.xssf.usermodel.*; |
Instance ID: i-9ba4e4a3
ec2-54-222-135-157.cn-north-1.compute.amazonaws.com.cn
54.222.135.157
ssh -i "~/.ssh/fuel-staging.pem" [email protected]
| upstream unicorn_nykfuel-staging { | |
| server unix:/tmp/unicorn.nykfuel-staging.sock | |
| fail_timeout=0; | |
| } | |
| server { | |
| listen 8081; | |
| root /var/www/nykfuel-staging/current/public; | |
| access_log /var/log/nginx/nykfuel-staging_access.log; | |
| error_log /var/log/nginx/nykfuel-staging_error.log; |
Create on Amazon EC2
ssh -i "nykfuel-luc.pem" [email protected]
yum groupinstall "Development Tools"
yum install git pcre pcre-devel
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf to /usr/local/etc/nginx/default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| ssh-keygen -t rsa -b 4096 -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |