Skip to content

Instantly share code, notes, and snippets.

View maketheworldwise's full-sized avatar
🏎️
Running my engine

Kevin Ahn maketheworldwise

🏎️
Running my engine
View GitHub Profile
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:40
[React] React 기본 설정

기본 설치 방법

$ nvm use 16.16.0
$ npx create-react-app .

Router 의존성 설치 및 적용

Java +2.5k/ -8 ████████████████▊░░░░ 80.2%
Gradle +298/ -63 ██▊░░░░░░░░░░░░░░░░░░ 13.2%
YAML +119/ -4 ▉░░░░░░░░░░░░░░░░░░░░ 4.3%
Markdown +53/ -0 ▎░░░░░░░░░░░░░░░░░░░░ 1.5%
Java Prop… +20/ -0 ▏░░░░░░░░░░░░░░░░░░░░ 0.6%
XML +4/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.3%
@maketheworldwise
maketheworldwise / 0. EC2 무중단 배포 (docker, docker-compose)
Last active June 10, 2022 09:13
EC2 - 무중단 배포 (docker, docker-compose)
docker, docker-compose를 이용한 무중단 배포 구성 (애플리케이션을 실행시 공개되어서는 안되는 내용들이 있다면, 하단의 모든 파일들은 서버에 직접 구성해 놓는 편이 보안적으로 안전)
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:48
[AWS] EC2에 docker, docker-compose 설치 방법

Docker 설치 방법

# 설치
$ sudo amazon-linux-extras install docker
$ sudo systemctl start docker
$ docker --version

# 권한 부여
$ sudo usermod -a -G docker ec2-user
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 15:00
[Spring] AWS Cloudwatch Logback Appender 설정

기본 설정

# logback.yml
<configuration packagingData="true">

    <!-- Timestamp used into the Log Stream Name -->
    <timestamp key="timestamp" datePattern="yyyy-MM-dd-HH-mm-ssSSS"/>

    <!-- The actual AwsLogsAppender (asynchronous mode because of maxFlushTimeMillis > 0) -->
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:49
[Linux] 유용하게 사용하는 리눅스 명령어

유용하게 사용하는 리눅스 명령어 목록

# 특정 포트 검색
$ netstat -nltp | grep 8080

# 특정 포트에서 사용하는 프로그램 확인
$ lsof -t tcp:8080

# 특정 포트를 사용하는 프로그램 죽이기
@maketheworldwise
maketheworldwise / 0. EC2 (Java 11, Jenkins, Nginx, MariaDB, MySQL)
Last active May 13, 2022 03:09
EC2 - Java 11, Jenkins, Nginx, MariaDB, MySQL 설치 명령어
EC2에 Java 11, Jenkins, Nginx, MariaDB, MySQL 설치시 필요한 명령어
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:43
[Spring] application.yml 설정 분리

개발환경별 설정 파일 분리 방법

spring:
  profiles:
    default: local

  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://localhost:3306/test?useSSL=false&amp;allowPublicKeyRetrieval=true&amp;serverTimezone=UTC
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:46
[Docker] Dockerfile 기본 사용법 (MySQL)

기본 사용법

# mysql:8.0.29 형태로 버전을 명시 권장

FROM mysql:latest

ENV character-set-server utf8mb4
ENV collation-server utf8mb4_general_ci
ENV default-character-set utf8mb4