Skip to content

Instantly share code, notes, and snippets.

View Lyuji282's full-sized avatar
🎯
Focusing

Arthur Lawrence Lyuji282

🎯
Focusing
View GitHub Profile
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 / {
user nginx;
worker_processes auto;
worker_rlimit_nofile 4096;
events {
worker_connections 2048;
multi_accept on;
}
http {
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" )
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
# -*- coding: utf-8 -*-
import boto3
ACCESS_KEY = ''
SECRET_KEY = ''
BUCKET_NAME = ''
client = boto3.client(
's3',
@Lyuji282
Lyuji282 / DockerfileReactCreateApp
Created June 11, 2019 06:28
DockerfileReactCreateApp
FROM node:latest
RUN npm i -g create-react-app
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
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
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
#!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