Skip to content

Instantly share code, notes, and snippets.

@pengfeiw
pengfeiw / Manual for keychron.md
Last active December 20, 2025 13:55
京东京造键盘操作说明书

image

蓝牙连接

kechron 支持三个蓝牙设备间的切换。

长按 fn + 1/2/3 键 3 秒,激活蓝牙配对,此时设备与第一(二/三)个蓝牙绑定。

长按3秒 Fn+1/2/3键。(如长按 Fn+1,则蓝牙连接到第1个设备)。

@squarism
squarism / iterm2.md
Last active December 29, 2025 18:51
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@xkikeg
xkikeg / zshhist.py
Last active March 13, 2025 11:51
Convert ZSH history file (.zsh_history file) between original weird encoding and proper UTF-8.
#!/usr/bin/env python3
"""
ZSH history convert script.
When you mistakenly type your password or quite bad command into ZSH,
you may want to remove the entry from the history.
The problem is, the .zsh_history is encoded in a weird format!
If you want to find a command with non-ASCII character, it'll be problematic.