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
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/html; | |
index index.php; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
location / { |
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
user nginx; | |
worker_processes auto; | |
worker_rlimit_nofile 4096; | |
events { | |
worker_connections 2048; | |
multi_accept on; | |
} | |
http { |
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
pip install https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/tarball/master | |
pip install jupyter_contrib_nbextensions jupyter autopep8 | |
jupyter contrib nbextension install --system & | |
declare -a jnl=( "collapsible_headings/main" ) | |
jnl+=( "codefolding/main" ) |
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
esc-cli configure --region ap-northeast-1 --cluster hoge | |
esc-cli up --keypair [KEY] --capability-iam --size [NUMBER] --instance-type [t2.small] | |
ecs-cli compose -f [NAME].yml --launch-type [EC2 or Fargate] --cluster [NAME] up size [NUMBER] | |
esc-cli ps | |
esc-cli compose -f [NAME] down | |
ecs-cli compose -f [NAME].yml service up | |
esc-cli compose -f [NAME].yaml service rm |
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
# -*- coding: utf-8 -*- | |
import boto3 | |
ACCESS_KEY = '' | |
SECRET_KEY = '' | |
BUCKET_NAME = '' | |
client = boto3.client( | |
's3', |
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
FROM node:latest | |
RUN npm i -g create-react-app |
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
version: "3.3" | |
services: | |
react: | |
build: ./react | |
container_name: react_test | |
stdin_open: true | |
restart: always | |
environment: | |
- NODE_ENV=production | |
working_dir: /usr/src/react |
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
vpcを作成する際はできるだけ、ブロック数を下げて節約する 例 10.0.0.0/27 | |
分割数を考えて、余分のできないようにsubnetsを作成する(リージョンごと) | |
例: | |
10.0.0.0/28 in a region | |
10.0.0.128/28 in c region | |
・route table | |
・internet gateway |
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
vpcを作成する際はできるだけ、ブロック数を下げて節約する 例 10.0.0.0/27 | |
分割数を考えて、余分のできないようにsubnetsを作成する(リージョンごと) | |
例: | |
10.0.0.0/28 in a region | |
10.0.0.128/28 in c region | |
・route table | |
・internet gateway |
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
#!make | |
include .env | |
export $(shell sed 's/=.*//' .env) | |
start-local: | |
docker-compose -f docker-compose.local.yml up -d | |
start-local-build: | |
docker-compose -f docker-compose.local.yml up -d --build |