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
🌞 Morning 13 commits ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
🌆 Daytime 178 commits █████████▋░░░░░░░░░░░ 46.4%
🌃 Evening 85 commits ████▋░░░░░░░░░░░░░░░░ 22.1%
🌙 Night 108 commits █████▉░░░░░░░░░░░░░░░ 28.1%
⭐ Total Stars: 12
➕ Total Commits: 837
🔀 Total PRs: 83
🚩 Total Issues: 63
📦 Contributed to: 0
@maketheworldwise
maketheworldwise / README.md
Last active June 11, 2023 14:41
[Spring] 환경별 다중 application.yml 설정

개발환경별 application.yml 설정 방법

spring:
  profiles:
    active: local

  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://localhost:3306?useSSL=false&allowPublicKeyRetrieval=true&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
@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&allowPublicKeyRetrieval=true&serverTimezone=UTC
@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:49
[Linux] 유용하게 사용하는 리눅스 명령어

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

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

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

# 특정 포트를 사용하는 프로그램 죽이기
@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: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 / 0. EC2 무중단 배포 (docker, docker-compose)
Last active June 10, 2022 09:13
EC2 - 무중단 배포 (docker, docker-compose)
docker, docker-compose를 이용한 무중단 배포 구성 (애플리케이션을 실행시 공개되어서는 안되는 내용들이 있다면, 하단의 모든 파일들은 서버에 직접 구성해 놓는 편이 보안적으로 안전)