Skip to content

Instantly share code, notes, and snippets.

View partrita's full-sized avatar
๐ŸŽฏ
Focusing on hobby

Taeyoon Kim partrita

๐ŸŽฏ
Focusing on hobby
View GitHub Profile
@partrita
partrita / init.lua
Created July 19, 2025 08:50
nvim plugins packages
-- You can add your own plugins here or in other files in this directory!
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {
'nvimtools/none-ls.nvim',
dependencies = {
'nvimtools/none-ls-extras.nvim',
'jayp0521/mason-null-ls.nvim', -- ensure dependencies are installed
},
@partrita
partrita / README.md
Last active July 15, 2025 07:06
Quarto์™€ typst๋ฅผ ์‚ฌ์šฉํ•ด PDF ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ

Install dependency

Use pixi.

pixi init
pixi add quarto

Make qmd project

@partrita
partrita / init.lua
Created July 10, 2025 06:14
ssh๋กœ ์ ‘์†ํ•˜๊ณ  nvim์„ ์‚ฌ์šฉํ• ๋•Œ copy and paste
vim.o.clipboard = "unnamedplus"
local function paste()
return {
vim.fn.split(vim.fn.getreg(""), "\n"),
vim.fn.getregtype(""),
}
end
vim.g.clipboard = {
@partrita
partrita / README.md
Last active June 26, 2025 07:42
NixOS config files

NixOS is future?

I don't know but it's worth to tried.

@partrita
partrita / conver_notebooks_cli.py
Created June 16, 2025 02:22
python script for bulk pdf conversion. even faster.
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "click",
# "nbconvert[webpdf]",
# ]
# ///
import os
import subprocess
@partrita
partrita / config
Last active June 16, 2025 02:09
.config/i3/config
# ์ด ํŒŒ์ผ์€ i3-config-wizard(1)์— ์˜ํ•ด ์ž๋™์œผ๋กœ ์ƒ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฎ์–ด์“ฐ์—ฌ์ง€์ง€ ์•Š์œผ๋ฏ€๋กœ ์›ํ•˜๋Š” ๋Œ€๋กœ ์ˆ˜์ •ํ•˜์‹ญ์‹œ์˜ค.
# ํ‚ค๋ณด๋“œ ๋ ˆ์ด์•„์›ƒ์„ ๋ณ€๊ฒฝํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ, ์ด ํŒŒ์ผ์„ ์‚ญ์ œํ•˜๊ณ  i3-config-wizard(1)๋ฅผ ๋‹ค์‹œ ์‹คํ–‰ํ•˜์‹ญ์‹œ์˜ค.
# i3 ์„ค์ • ํŒŒ์ผ (v4). https://i3wm.org/docs/userguide.html์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.
# ๋ณ€์ˆ˜ ์„ค์ •
set $mod Mod1
set $refresh_i3status killall -SIGUSR1 i3status
# ==============================================================================
@partrita
partrita / config.yaml
Last active June 11, 2025 00:40
GlazeWM config.yaml
general:
# WM(์œˆ๋„์šฐ ๋งค๋‹ˆ์ €) ์‹œ์ž‘ ์‹œ ์‹คํ–‰ํ•  ๋ช…๋ น์–ด. ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰์ด๋‚˜ ๋‹ค๋ฅธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์‹คํ–‰์— ์œ ์šฉํ•จ.
# ์˜ˆ์‹œ: ์•„๋ž˜ ๋ช…๋ น์€ Zebar๋ฅผ ์‹คํ–‰ํ•จ.
startup_commands: ['shell-exec zebar']
# WM ์ข…๋ฃŒ ์ง์ „ ์‹คํ–‰ํ•  ๋ช…๋ น์–ด.
# ์˜ˆ์‹œ: ์•„๋ž˜ ๋ช…๋ น์€ Zebar๋ฅผ ์ข…๋ฃŒํ•จ.
shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']
# WM ์„ค์ • ํŒŒ์ผ์„ ๋‹ค์‹œ ๋ถˆ๋Ÿฌ์˜ฌ ๋•Œ ์‹คํ–‰ํ•  ๋ช…๋ น์–ด.
@partrita
partrita / README.md
Last active June 6, 2025 23:41
๋ชจ๋˜ ์‰˜ ๋ช…๋ น์–ด; ์ถœ์ฒ˜: https://cdecl.github.io/devops/moden-shell-command/

๋‹ค์Œ์€ ์ถœ์ฒ˜ ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ์„ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๊ฐ„์ถ”๋ฆฐ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์™œ ๋ชจ๋˜ ์‰˜ ๋ช…๋ น์–ด๊ฐ€ ํ•„์š”ํ•œ๊ฐ€?

๋ชจ๋˜ ์‰˜ ๋ช…๋ น์–ด๋Š” Rust, Go์™€ ๊ฐ™์€ ์ตœ์‹  ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋กœ ๊ฐœ๋ฐœ๋˜์–ด ๋›ฐ์–ด๋‚œ ์†๋„์™€ ํšจ์œจ์„ฑ์„ ์ž๋ž‘ํ•˜๋ฉฐ, ์‚ฌ์šฉ์ž ์นœํ™”์ ์ธ ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ฃผ์š” ์žฅ์ ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • ์†๋„: Rust ๊ธฐ๋ฐ˜ ๋„๊ตฌ๋“ค์€ ๋ณ‘๋ ฌ ์ฒ˜๋ฆฌ๋ฅผ ํ†ตํ•ด ๊ธฐ์กด ๋ช…๋ น์–ด๋ณด๋‹ค ํ›จ์”ฌ ๋น ๋ฅธ ์„ฑ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
  • ๊ฐ€๋…์„ฑ: ์ปฌ๋Ÿฌ ์ถœ๋ ฅ๊ณผ ์ง๊ด€์ ์ธ ๊ฒฐ๊ณผ๋ฌผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ํ›จ์”ฌ ์‰ฝ๊ฒŒ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์œ ์‚ฌํ•œ ๋ฌธ๋ฒ•: ๊ธฐ์กด ๋ช…๋ น์–ด์™€ ์œ ์‚ฌํ•œ ๋ฌธ๋ฒ•์„ ์ฑ„ํƒํ•˜์—ฌ ํ•™์Šต ๊ณก์„ ์ด ์™„๋งŒํ•˜๋ฉฐ ๋น ๋ฅด๊ฒŒ ์ ์‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ํ™•์žฅ๋œ ๊ธฐ๋Šฅ: Git ํ†ตํ•ฉ, ์œ ๋‹ˆ์ฝ”๋“œ ์ง€์›, ํ–ฅ์ƒ๋œ ์ •๊ทœ ํ‘œํ˜„์‹ ๋“ฑ ์ตœ์‹  ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์— ํ•„์š”ํ•œ ๊ธฐ๋Šฅ๋“ค์„ ๊ธฐ๋ณธ์œผ๋กœ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
@partrita
partrita / learn_duckdb.py
Created June 6, 2025 02:02
duckdb ๊ฐ€ ๊ทธ๋ ‡๊ฒŒ ์ข‹๋‹ค๋˜๋ฐ
import duckdb
import os
# ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํŒŒ์ผ ๊ฒฝ๋กœ ์„ค์ •
db_file_path = '../data/my_database.duckdb'
# ํŒŒ์ผ ๊ธฐ๋ฐ˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์—ฐ๊ฒฐ
con = duckdb.connect(database=db_file_path)
# CSV ํŒŒ์ผ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ
@partrita
partrita / config.toml
Created February 24, 2025 00:26
Helix editor config files.
# ์—๋””ํ„ฐ์˜ ์ „์ฒด์ ์ธ ํ…Œ๋งˆ ์„ค์ •
theme = "nord"
[editor]
# ์ค„ ๋์— ํ‘œ์‹œํ•  ์ตœ์†Œ ์ง„๋‹จ ์ˆ˜์ค€
end-of-line-diagnostics = "hint"
# ๋งˆ์šฐ์Šค ์‚ฌ์šฉ ๋น„ํ™œ์„ฑํ™”
mouse = false
# ํŠธ๋ฃจ ์ปฌ๋Ÿฌ ์ง€์› ํ™œ์„ฑํ™”
true-color = true