Skip to content

Instantly share code, notes, and snippets.

View ksundong's full-sized avatar
๐Ÿƒโ€โ™‚๏ธ
Run

Dion ksundong

๐Ÿƒโ€โ™‚๏ธ
Run
View GitHub Profile
@djkeh
djkeh / DataSourceConfig.java
Last active July 9, 2020 03:34
Sample codes of reading user-custom yaml files as ConfigurationProperties of Spring Boot.
package com.your.project.config;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import javax.sql.DataSource;
@dlxotn216
dlxotn216 / Auditing.md
Last active April 26, 2024 07:48
Spring data jpa์˜ Audit ๊ธฐ๋Šฅ๊ณผ Spring data envers

Application์„ ๊ตฌํ˜„ํ•˜๋ฉด์„œ ๋Œ€๋ถ€๋ถ„ ์š”๊ตฌ์‚ฌํ•ญ์— ๋ช…์‹œ๋˜๋Š” ๊ธฐ๋Šฅ์ด ๋ณ€๊ฒฝ์‚ฌํ•ญ ์ถ”์ ์ด๋‹ค. ์ด๋•Œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์ถ”์ ํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋Š” ๋ˆ„๊ฐ€ ์–ธ์ œ ์ƒ์„ฑํ•˜์˜€์œผ๋ฉฐ, ๋ˆ„๊ฐ€ ์–ธ์ œ ๋ณ€๊ฒฝํ•˜์˜€๋Š”์ง€ ๊ทธ๋ฆฌ๊ณ  ํ•ด๋‹น ๋ฐ์ดํ„ฐ์˜ ์‹œ์ ์— ๋”ฐ๋ฅธ ๋ณ€๊ฒฝ ์ด๋ ฅ์ด๋‹ค.

์ „ํ†ต์ ์ธ Mybatis๋ฅผ ์ด์šฉํ•˜๋Š” Spring MVC์™€ ๊ฐ™์€ ํ”„๋ ˆ์ž„์›Œํฌ์—์„  AOP๋ฅผ ์ด์šฉํ•œ๋‹ค๋˜์ง€ ๋˜๋Š” Mapper์—์„œ Insert, Update, Delete ์ฟผ๋ฆฌ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ๋งˆ๋‹ค History table์— Insertํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๊ฐ™์ด ์‹คํ–‰ ํ•˜๋„๋ก ์ฒ˜๋ฆฌํ•˜๋Š” ๋“ฑ์˜ ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค. ์ด๋Ÿฌํ•œ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•  ๋•Œ ์ƒ๊ฐ๋ณด๋‹ค ๊ฐœ๋ฐœ ์ผ์ •์„ ์ง€์—ฐ์‹œํ‚ค๋Š” ์š”์†Œ๊ฐ€ ๋งŽ๋‹ค.

์˜ˆ๋ฅผ๋“ค์–ด History ํ…Œ์ด๋ธ”์˜ PK๋ฅผ ์ž˜๋ชป ์ง€์ •ํ•˜์—ฌ ๋ฐœ์ƒํ•˜๋Š” ์˜ˆ์™ธ๋‚˜ DBMS๋งˆ๋‹ค ์ƒ์ดํ•œ ๋‹ค๋Ÿ‰์˜ ์ฟผ๋ฆฌ๋ฌธ ์‹คํ–‰ ๋ฌธ๋ฒ• ๋“ฑ์ด๋‹ค. ์ „์ž๋Š” ๊ฐœ๋ฐœ ๋‹จ๊ณ„๋ณด๋‹ค UAT ๊ธฐ๊ฐ„ ๋“ฑ์—์„œ ๋ฐœ๊ฒฌํ•˜๊ธฐ ์‰ฌ์šธ ๋ฟ๋”๋Ÿฌ ๋ชจ๋“  ๋Œ€์ƒ ํ…Œ์ด๋ธ”์„ ๋Œ๋ฉด์„œ Schema๋ฅผ ๋ณ€๊ฒฝํ•ด์•ผ ํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€์ด ์žˆ๋‹ค.

@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active January 14, 2025 02:29
AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ

AWS ํ•™์Šต ๋งํฌ์ง‘ ์‹œ๋ฆฌ์ฆˆ

  • AWS ํ•™์Šต ์ž๋ฃŒ์ง‘ http://bit.ly/aws-study-resource
  • AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/sacertguide
  • AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/devcertguide
  • AWS ๋ณด์•ˆ ๊ด€๋ จ ์ปจํ…์ธ  ๋ชจ์Œ์ง‘ http://bit.ly/seccontents

AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ(http://bit.ly/devcertguide)

@knadh
knadh / zsh-elapsed-time.md
Last active April 11, 2025 15:17
Elapsed and execution time for commands in ZSH

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
 timer=$(($(date +%s%0N)/1000000))
@nobitagit
nobitagit / iterm2.md
Last active July 30, 2024 01:01
iterm2 cheatsheet

This gist has been moved to its own Github repo, so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.

Tabs and Windows

Function Shortcut
Previous Tab โŒ˜+ Left Arrow
Next Tab โŒ˜+ Right Arrow
Go to Tab โŒ˜ + Number
@lifthrasiir
lifthrasiir / crypto.md
Last active November 14, 2023 07:10
High-level understanding of cryptography

๊ณ ์ˆ˜์ค€์—์„œ ์•”ํ˜ธํ•™ ์ดํ•ดํ•˜๊ธฐ

์ด ๊ธ€์€ ๋ฉ”์•„๋ฆฌ ์ €๋„์— ์“ธ ๋ชฉ์ ์œผ๋กœ ํ•œ๋™์•ˆ ์ž‘์—…ํ•˜๋˜ ๊ธ€์ž…๋‹ˆ๋‹ค. ๋ฉ”์•„๋ฆฌ ํŠน์œ ์˜ ๋””์ž์ธ(...)์ด ์‹ซ๋‹ค๋ฉด ์—ฌ๊ธฐ๋กœ ๋งํฌํ•˜์…”๋„ ๋ฉ๋‹ˆ๋‹ค. ์–ด๋А ์ชฝ์ด๋“ ๊ฐ„์— ์˜๊ฒฌ์€ ์ด ์•„๋ž˜์˜ ์ฝ”๋ฉ˜ํŠธ ๋ž€ ๋˜๋Š” ๋ฉ”์•„๋ฆฌ์— ๊ธฐ์žฌ๋˜์–ด ์žˆ๋Š” ๋ฉ”์ผ ์ฃผ์†Œ๋ฅผ ์จ ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. --lifthrasiir

์•”ํ˜ธํ•™์„ ์‚ฌ์šฉํ•˜๋Š” ๋งŽ์€ ์‹œ์Šคํ…œ์€ ์„ธ๋ถ€์ ์œผ๋กœ ๋ฌด์Šจ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์“ฐ๋Š”์ง€๋ณด๋‹ค๋Š” ๊ทธ ์•Œ๊ณ ๋ฆฌ์ฆ˜๋“ค์ด ์–ด๋–ป๊ฒŒ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š”์ง€, ์ฆ‰ ๊ตฌ์กฐ๊ฐ€ ์‹ค์ œ ์•ˆ์ „์„ฑ์— ๋” ํฐ ์˜ํ–ฅ์„ ๋ฏธ์นœ๋‹ค. ๋”ฐ๋ผ์„œ ๊ตฌ์กฐ์™€ ๊ทธ ๊ตฌ์กฐ๋ฅผ ์ด๋ฃจ๋Š” ๋นŒ๋”ฉ ๋ธ”๋Ÿญ์„ ์•„๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•œ๋ฐ, ์—ฌ๊ธฐ์—์„œ๋Š” ์ด๋Ÿฌํ•œ ์•”ํ˜ธํ•™์  ๋นŒ๋”ฉ ๋ธ”๋Ÿญ๊ณผ ํ•จ๊ป˜ ๋ธ”๋Ÿญ๋“ค์ด ์–ด๋–ป๊ฒŒ ์“ฐ์—ฌ์„œ ๋” ํฐ ๊ตฌ์กฐ๋ฅผ ๋งŒ๋“œ๋Š”์ง€๋ฅผ ์•Œ์•„ ๋ณธ๋‹ค.

Key Exchange

ํ‚ค ๊ตํ™˜. ๋‘ ์‚ฌ๋žŒ๋งŒ์ด ์•Œ ์ˆ˜ ์žˆ๋Š” ์ƒˆ๋กœ์šด ํ‚ค๋ฅผ ๋งŒ๋“ ๋‹ค. ์ด ๊ณผ์ •์ด ๋๋‚˜๋„ ์ƒ๋Œ€๋ฐฉ์ด ๋‚ด๊ฐ€ ์•„๋Š” ์‚ฌ๋žŒ์ธ์ง„ ์•Œ ์ˆ˜ ์—†์ง€๋งŒ ์ ์–ด๋„ ์ƒ๋Œ€๋ฐฉ๊ณผ ๋‚ด๊ฐ€ ๊ฐ™์€ ํ‚ค๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค๋Š” ๊ฑด ํ™•์‹ ํ•  ์ˆ˜ ์žˆ๋‹ค.