Skip to content

Instantly share code, notes, and snippets.

View mu-hun's full-sized avatar

Kim Mu-hun mu-hun

View GitHub Profile
[InternetShortcut]
URL=data:text/html,<input type="color" onchange="document.bgColor=this.value">
@mu-hun
mu-hun / README.md
Last active March 9, 2025 11:53
`nvshare`: λ©”λͺ¨λ¦¬ 크기 μ œμ•½ μ—†λŠ” μ‹€μš©μ μΈ GPU 곡유

nvshare: λ©”λͺ¨λ¦¬ 크기 μ œμ•½ μ—†λŠ” μ‹€μš©μ μΈ GPU 곡유

  • 저널 링크: nvshare | 2024 IEEE/ACM 46th
  • ν•΄λ‹Ή 연ꡬλ₯Ό GitHub grgalex/nvshare README에 λ‚˜μ˜¨ 정보λ₯Ό λ°”νƒ•μœΌλ‘œ λ¦¬λ·°ν–ˆμŠ΅λ‹ˆλ‹€.

읽기 전에...

μ•„λž˜ 인용 μ•„ν‹°ν΄μ˜ μ˜μƒ 버전 및 nvshare 데λͺ¨: https://youtu.be/9n-5sc5AICY

I've written a Medium article on the challenges of GPU sharing on Kubernetes, it's worth a read.[^medium]

@mu-hun
mu-hun / jejuair.net.user.js
Created November 15, 2024 02:19
JejuAir login button active for Firefox
// ==UserScript==
// @name JejuAir login button active for Firefox
// @version 1
// @grant none
// @match https://www.jejuair.net/ko/member/auth/login.do*
// @run-at document-end
// ==/UserScript==
const button = document.querySelector(".button-wrap.button-wrap--login button");
button.className = "button button--primary login button--active"
@mu-hun
mu-hun / pathReslove.ts
Created June 4, 2023 06:09
Node JS API `path.resolve` implement
export default function pathResolve(...paths: string[]) {
const parsedPaths = paths.flatMap((path) => path.split('/')).filter(Boolean);
const resolvedPaths = parsedPaths.reduce((previousValue, path) => {
if (path === '..') {
previousValue.pop();
} else {
previousValue.push(path);
}
@mu-hun
mu-hun / index.ts
Created January 24, 2023 06:21
First item is constant
type A = ['-', ...number[]]
let a = ['-', 1, 2, 3, 4] satisfies A
// You can type check in playground:
// https://www.typescriptlang.org/play?#code/C4TwDgpgBAglC8UDaByAtCgNFAdHgdgK4C2ARhAE5IC61AUHQDYTBQCGCy6WUAjNgCZsAZmwAWalADObYAEspAMzkQpsOkA
@mu-hun
mu-hun / recommend-references.md
Last active February 15, 2026 14:35
Books I recommend for work πŸ“š

Software Engineering

  • The Pragmatic Programmer
  • The Mythical Man-Month
  • The Psychology of Computer Programming, Gerald M. Weinberg
  • λ‚΄ μ½”λ“œκ°€ κ·Έλ ‡κ²Œ μ΄μƒν•œκ°€μš” - 쒋은 μ½”λ“œ/λ‚˜μœ μ½”λ“œλ‘œ λ°°μš°λŠ” 섀계 μž…λ¬Έ (Korean)

How to learn

Mathematical thinking and problem solving

@mu-hun
mu-hun / .zshrc
Last active October 21, 2021 03:33
Open Azure repo in Browser from git remote url
function az() {
open `git remote get-url origin |
perl -pe 's#^git\@ssh\.dev\.azure\.com:v3/(.*)/(.*)$|^https://.*@dev.azure.com/(.*)/_git/(.*)$#https://dev.azure.com/\1\3/_git/\2\4#g'`
}
@mu-hun
mu-hun / SICP.md
Last active February 19, 2021 11:12

SICP

1. ν”„λ‘œμ‹œμ Έλ₯Ό μ¨μ„œ μš”μ•½ν•˜λŠ” 방법

데이터 ꡬ쑰, κΈ°λŠ₯ 관계성을 μ„€λͺ…ν•˜λŠ” μš©λ„λ‘œ λ¦¬μŠ€ν”„κ°€ μ•Œλ§žλ‹€.

  • ν”„λ‘œμ‹œμ €λ₯Ό 보톡 λ°μ΄ν„°μ²˜λŸΌ μ“Έ 수 μžˆλ‹€.
  • 데이터와 ν”„λ‘œμ‹œμ €λ₯Ό κ΅¬λΆ„ν•˜μ§€ μ•ŠλŠ”λ‹€
    • λŒ€ν‘œ 예둜 ν‘œν˜„μ‹ = κ°’ 인가?

λ¦¬μŠ€ν”„λŠ” ν”„λ‘œμ‹œμ €λ₯Ό λ°μ΄ν„°μ²˜λŸΌ 닀룬닀.

@mu-hun
mu-hun / mma.user.js
Last active October 24, 2025 04:50
병무청 병역일터 검색
// ==UserScript==
// @name 병무청 병역일터 검색
// @version 1
// @grant none
// @match https://work.mma.go.kr/caisBYIS/search/byjjecgeomsaek.do
// @match https://work.mma.go.kr/caisBYIS/search/cygonggogeomsaek.do
// @run-at document-idle
// ==/UserScript==
@mu-hun
mu-hun / 4.1.2.js
Created September 30, 2020 05:07
YDKJS generator example
let z = 1;
function *foo() {
const x = yield 2;
z++
const y = yield (x*z)
console.log(x, y, z)
}
const it_first = foo()