Skip to content

Instantly share code, notes, and snippets.

View levihuayuzhang's full-sized avatar

Huayu Zhang levihuayuzhang

View GitHub Profile
@levihuayuzhang
levihuayuzhang / keybindings.json
Created January 9, 2024 14:34 — forked from bitterteasweetorange/keybindings.json
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
@levihuayuzhang
levihuayuzhang / clash.service
Created January 6, 2023 15:26 — forked from akillcool/clash.service
clash auto start and update subcribe configuration
# edit and save this file to /usr/lib/systemd/system/clash.service
[Unit]
Description=clash
After=network.target
[Service]
WorkingDirectory="your home directory"/.config/clash
ExecStart="your home directory"/.config/clash/start-clash.sh
ExecStop="your home directory"/.config/clash/stop-clash.sh
Environment="HOME=your home directory"
@levihuayuzhang
levihuayuzhang / build-mpv_silicon.sh
Last active January 3, 2024 03:29 — forked from dbrookman/build-mpv_silicon.sh
How to build mpv & mpv.app on an Apple silicon (M1 / M2) Mac
#!/usr/bin/env bash
cd mpv
git reset --hard
git clean --force -d -x
git pull origin master
set -x
# use standalone tools, not Xcode's (avoids xcrun errors)