Skip to content

Instantly share code, notes, and snippets.

@minghu6
minghu6 / keybings.json
Created September 3, 2026 01:11
自定义 vscode emacs风格按键配置
// === 光标移动(包括选中) ===
{ "key": "ctrl+a", "command": "cursorHome", "when": "textInputFocus" },
{ "key": "ctrl+a", "command": "cursorHomeSelect", "when": "textInputFocus && selectionAnchorSet" },
{ "key": "ctrl+e", "command": "cursorEnd", "when": "textInputFocus" },
{ "key": "ctrl+e", "command": "cursorEndSelect", "when": "textInputFocus && selectionAnchorSet" },
{ "key": "ctrl+shift+,", "command": "cursorTop", "when": "textInputFocus" },
{ "key": "ctrl+shift+,", "command": "cursorTopSelect", "when": "textInputFocus && selectionAnchorSet" },
@minghu6
minghu6 / .bash_aliases
Created August 18, 2022 16:05
bash aliases
alias m6pwd="rlwrap python -m minghu6.tools.pwd_keeper"
alias pm="rlwrap python -m"
alias m6ff="python -m minghu6.tools.ff"
alias m6uuid="python -m minghu6.tools.path2uuid"
alias m6auto_resume="python -m minghu6.tools.auto_resume"
alias m6text="pm minghu6.tools.text"
alias ssd="sudo sslocal -c ~/.shadowsocks.json --log-file ~/log/shadowsocks.log -d start"
alias ccl="rlwrap ~/coding/CL/official-repos/ccl-dev/ccl/lx86cl64"
alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.9.2-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
alias grun='java -Xmx500M -cp "/usr/local/lib/antlr-4.9.2-complete.jar:$CLASSPATH" org.antlr.v4.gui.TestRig'
@minghu6
minghu6 / pr_joke1.rb
Last active November 8, 2022 09:04
a joke about code contributing and review
# pr joker1
review_queue = PRQ.new
mypr = :mypr
while conflict? review_queue.wait(mypr)
fix_and_rebase mypr
review_queue.push mypr
end