Skip to content

Instantly share code, notes, and snippets.

View gitgitWi's full-sized avatar
๐Ÿ’ฏ

gitgitWi gitgitWi

๐Ÿ’ฏ
View GitHub Profile
@hyperupcall
hyperupcall / settings.jsonc
Last active June 26, 2025 09:47
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active August 4, 2025 03:02
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.

You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.

You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)

Don't like Next? Here's how to do the same in Gatsby.

@longfin
longfin / writing.md
Last active October 31, 2024 05:50
์—”์ง€๋‹ˆ์–ด๋ฅผ ์œ„ํ•œ ๊ธ€์“ฐ๊ธฐ

์ด ๊ธ€์€ Heinrich Hartmann ๋‹˜์ด ์ž‘์„ฑํ•˜์‹  ๊ธ€์„ ํ•œ๊ตญ์–ด๋กœ ๋ฒˆ์—ญํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์›๋ฌธ์€ https://www.heinrichhartmann.com/posts/writing/ ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


๊ธ€์“ฐ๊ธฐ๋Š” ํฐ ์กฐ์ง์—์„œ ์˜ํ–ฅ๋ ฅ์„ ๋ฐœํœ˜ํ•˜๋Š” ๋ฐ ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ๊ฒฝ๋ ฅ ์žˆ๋Š” ์†Œํ”„ํŠธ์›จ์–ด ์—”์ง€๋‹ˆ์–ด๋กœ์„œ์˜ ๊ธ€์“ฐ๊ธฐ๋Š” ์ง๋ฌด ๋ฒ”์œ„๋ฅผ ํ™•์žฅํ•˜๊ณ  ๊ฒฝ๋ ฅ์„ ๋ฐœ์ „์‹œํ‚ค๊ธฐ ์œ„ํ•ด ํš๋“ํ•ด์•ผ ํ•˜๋Š” ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๊ธฐ์ˆ ์ž…๋‹ˆ๋‹ค.

๊ธ€์“ฐ๊ธฐ๋Š” ์–ด๋ ต์Šต๋‹ˆ๋‹ค. ๋งŽ์€ ์†Œํ”„ํŠธ์›จ์–ด ์—”์ง€๋‹ˆ์–ด๋“ค์ด ๊ธ€์“ฐ๊ธฐ์™€ ์”จ๋ฆ„ํ•˜์ฃ . ์ €๋„ ๊ฐœ์ธ์ ์œผ๋กœ ๋ฌธํ•™์— ๋Œ€ํ•œ ๊ด€์‹ฌ์ด ์—†๊ธฐ ๋•Œ๋ฌธ์— ๊ธ€์“ฐ๊ธฐ๊ฐ€ ์ž์—ฐ์Šค๋Ÿฝ์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

@justjake
justjake / server-preload.js
Last active July 8, 2025 16:50
Customizing NextJS for error reporting and Datadog APM (dd-trace) integration. See https://jake.tl/notes/2021-04-04-nextjs-preload-hack
// @ts-check
"use strict"
/**
* Set up datadog tracing. This should be called first, so Datadog can hook
* all the other dependencies like `http`.
*/
function setUpDatadogTracing() {
const { tracer: Tracer } = require('dd-trace')
const tracer = Tracer.init({
@gitgitWi
gitgitWi / PSStudyGuideFromBlogs.md
Last active September 10, 2020 02:29
ProblemSolving
@gitgitWi
gitgitWi / gist:12a49afa1bedc9a5b81cf5680189cc0f
Created July 28, 2020 16:17 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@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๋ฅผ ๋ณ€๊ฒฝํ•ด์•ผ ํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€์ด ์žˆ๋‹ค.

@lesstif
lesstif / change-ubuntu-mirror.sh
Last active August 21, 2024 13:20
์šฐ๋ถ„ํˆฌ(ubuntu)์˜ apt ๊ธฐ๋ณธ ๋ฏธ๋Ÿฌ(mirror)๋ฅผ ๋‹ค์Œ ์นด์นด์˜ค(kakao), ์นด์ด์ŠคํŠธ(kaist), ๋ถ€๊ฒฝ๋Œ€(harukasan) ์œผ๋กœ ๋ณ€๊ฒฝ
#!/usr/bin/env bash
SL=/etc/apt/sources.list
PARAM="r:hm:dnak"
KAKAO=mirror.kakao.com
KAIST=ftp.kaist.ac.kr
HARU=ftp.harukasan.org