Skip to content

Instantly share code, notes, and snippets.

@javecs
javecs / tensorflow-install.md
Last active May 7, 2018 03:57
TensorFlow インストール (macOS High Sierra)
@javecs
javecs / google-cloud-shell-java8.md
Created April 30, 2017 04:13
Google Cloud ShellでJava8を使用する
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java
@javecs
javecs / ami-jdk-install.md
Created April 8, 2017 15:44
AMIでJDKインストールする
@javecs
javecs / lightsail_config.md
Created April 8, 2017 06:17
Lightsailの設定
  • /etc/nginx/conf.d/virtual.conf
server {
    server_name  demo.javecs.xyz;
    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}
@javecs
javecs / gist:faf0634aac128ba2f6ed138351911c08
Last active March 26, 2017 13:01
Spring Boot アプリのポートを80にしたときに、起動中にエラーが起きる理由

On linux ports below 1024 can be opened only by root, so the port 80 is restricted by default

# iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080