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 <luc@ltv.vn>, September 17, 2016 | |
*/ | |
package vn.ltv.demo.poi; | |
import org.apache.poi.ss.usermodel.*; | |
import org.apache.poi.xssf.usermodel.*; |
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; |
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-available
homebrew.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 |