Skip to content

Instantly share code, notes, and snippets.

View bennlee's full-sized avatar
🧠
Aha!

Bennett Lee bennlee

🧠
Aha!
  • NAVER Corp.
  • Seoul, Korea
View GitHub Profile
@bennlee
bennlee / fix-input-source-switching-delay-in-m1-macbook.md
Last active January 22, 2025 06:07
M1 λ§₯μ—μ„œ ν•œμ˜ν‚€ μ „ν™˜ λ”œλ ˆμ΄ ν•΄κ²°ν•˜κΈ°

M1 λ§₯λΆμ—μ„œ ν•œμ˜ν‚€ μ „ν™˜ λ”œλ ˆμ΄ ν•΄κ²°ν•˜κΈ°

λ§₯μ—μ„œ Caps Lock을 ν•œ/영 μ „ν™˜ν‚€λ‘œ μ‚¬μš©ν•˜λ©΄μ„œλΆ€ν„° λ”œλ ˆμ΄κ°€ μƒκΈ°κ±°λ‚˜, μ œλŒ€λ‘œ λ°”λ€Œμ§€ μ•ŠλŠ” 고질적인 λ¬Έμ œκ°€ κΎΈμ€€νžˆ λ°œμƒν•΄μ™”λ‹€. λŒ€μ†Œλ¬Έμžλ₯Ό κ³ μ •ν•˜λŠ” Caps LockκΈ°λŠ₯κ³Ό ν•œ/영 μ „ν™˜ κΈ°λŠ₯을 λˆ„λ₯Έ μ‹œκ°„μ— κΈ°λ°˜ν•˜μ—¬ κ΅¬λΆ„ν•˜λŠ” κ³Όμ •μ—μ„œ 생긴 문제둜 μΆ”μ •λ˜μ§€λ§Œ, Caps LockκΈ°λŠ₯을 ν•΄μ œν•΄λ„ μ—¬μ „νžˆ λ¬Έμ œκ°€ λ°œμƒν•œλ‹€. 이에 μ‚¬μš©μžλ“€μ€ karabiner-elementsλ“±μ˜ νŽΈλ²•μ„ 톡해 Caps Lockν‚€λ₯Ό μ‹€μ œλ‘œ μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” F18λ“±μ˜ ν‚€λ‘œ λ§€ν•‘ν•˜μ—¬ ν•΄κ²°ν•΄ μ™”λ‹€.

ν•˜μ§€λ§Œ, Apple Silicon을 νƒ‘μž¬ν•œ κΈ°κΈ°λ“€μ—μ„œλŠ” λ‹€μŒκ³Ό 같은 λ¬Έμ œκ°€ μžˆλ‹€.

  • karabiner-elementsκ°€ μ œλŒ€λ‘œ μ§€μ›λ˜μ§€ μ•ŠλŠ” μ΄μŠˆκ°€ μžˆμ–΄ hammerspoonλ“±μ˜ 차선책을 μ‚¬μš©ν•΄μ•Όν•œλ‹€.
  • M1 μ΄μ „κΉŒμ§€μ˜ λ§₯κ³ΌλŠ” λ‹€λ₯΄κ²Œ ν‚€λ§€ν•‘λ§ŒμœΌλ‘œ λ¬Έμ œκ°€ μ™„μ „νžˆ ν•΄κ²°λ˜μ§€ μ•ŠλŠ”λ‹€.
@bennlee
bennlee / wildcards-in-paths.md
Last active December 19, 2024 08:02
What does the double asterisk(**) mean in the path?

What does the double asterisk(**) mean in the path?

There's two meaning of wildcards in paths for file collections.

  • * is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names.
  • ** is a recursive wildcard which can only be used with paths, not file names.

For examples,

  • /var/log/** will match all files in /var/log and all files in all child directories, recursively.
  • /var/log/**/*.log will match all files whose names end in .log in /var/log and all files in all child directories, recursively.
  • /home/*/.bashrc will match all .bashrc files in all user's home directories.
@bennlee
bennlee / remapping-keys-via-hidutil.md
Created November 19, 2021 05:39
How to remapping keys on macOS without thirdparty applications.

How to remapping keys on macOS without thirdparty applications.

You could remapping keys via the macOS embedded command line tool hidutil.


Key IDs Table
Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex)
@bennlee
bennlee / git_tips.md
Last active September 29, 2021 06:13
Useful git tips for collaboration

stash

μŠ€νƒœμ‹œ λ©”μ‹œμ§€ 직접 μž…λ ₯ (Stash with message)

git stash save "[message...]"

μŠ€νƒœμ‹œ 리슀트 보기 (Show stash list)

@bennlee
bennlee / electron.NET_quick_start.md
Last active August 27, 2019 04:23
Electron.NET Quick Start

Electron.NET Quick Start


ν”„λ‘œμ νŠΈ 생성

μ›ν•˜λŠ” λ””λ ‰ν† λ¦¬λ‘œ μ΄λ™ν•œ 후에 터미널에 λ‹€μŒμ„ μž…λ ₯

With MVC

dotnet new mvc