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 / flow2_64.json
Created December 1, 2025 05:04
lofree flow2 64 keyboard keymap for me.
{
"name": "Flow2@Lofree",
"vendorProductId": 948764673,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_1",
"KC_2",
"KC_3",
@partrita
partrita / auto_capture.py
Created November 24, 2025 12:28
PEGS ์ปจํผ๋Ÿฐ์Šค ๋น„๋””์˜ค์—์„œ ์Šฌ๋ผ์ด๋“œ๋ฅผ ์ถ”์ถœํ•˜๋Š” ๋…๋ฆฝ ์‹คํ–‰ํ˜• ์Šคํฌ๋ฆฝํŠธ
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "numpy",
# "opencv-python",
# "pillow",
# ]
# ///
"""
@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
# ==============================================================================