Skip to content

Instantly share code, notes, and snippets.

View bennlee's full-sized avatar
🧠
Aha!

Bennett Lee bennlee

🧠
Aha!
View GitHub Profile
@bennlee
bennlee / fix-input-source-switching-delay-in-m1-macbook.md
Last active April 11, 2024 03:00
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 April 18, 2024 14:49
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