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 / .zshrc
Created September 26, 2025 22:52
make it faster oh my zsh.
# from https://scottspence.com/posts/speeding-up-my-zsh-shell#ok-so-what-was-making-my-shell-slow
# Performance optimizations
DISABLE_AUTO_UPDATE="true"
DISABLE_MAGIC_FUNCTIONS="true"
DISABLE_COMPFIX="true"
# Cache completions aggressively
autoload -Uz compinit
if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then
compinit
@partrita
partrita / kanata.kbd
Last active October 1, 2025 00:34
my kanata.kbd file for linux.
;; check out, https://github.com/jtroo/kanata
;; Caps lock key for hangul, left alt <-> left ctrl key for ergonomics
;; pressed LControl+Space+Escape, exiting.
;; (defcfg
;; process-unmapped-keys yes
;; )
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
@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 / README.md
Last active August 16, 2025 09:40
Neovim์œผ๋กœ ssh๋กœ ์ ‘์†ํ–ˆ์„๋•Œ copy and paste ์ž‘๋™ํ•˜๊ณ , Normal ๋ชจ๋“œ ๋ณ€๊ฒฝ์‹œ ์ž๋™ ํ•œ์˜ ๋ณ€ํ™˜.

copy and paste ๊ด€๋ จ

ํ„ฐ๋ฏธ๋„ ์—๋ฎฌ๋ ˆ์ดํ„ฐ์—์„œ OSC 52๋ฅผ ์ง€์›ํ•ด์•ผ ์ž‘๋™ํ•œ๋‹ค.

vim.o.clipboard = "unnamedplus"

local function paste()
  return {
 vim.fn.split(vim.fn.getreg(""), "\n"),
@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 ํ†ตํ•ฉ, ์œ ๋‹ˆ์ฝ”๋“œ ์ง€์›, ํ–ฅ์ƒ๋œ ์ •๊ทœ ํ‘œํ˜„์‹ ๋“ฑ ์ตœ์‹  ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์— ํ•„์š”ํ•œ ๊ธฐ๋Šฅ๋“ค์„ ๊ธฐ๋ณธ์œผ๋กœ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.