Skip to content

Instantly share code, notes, and snippets.

View xgugeng's full-sized avatar
🏃‍♂️
Running

Guoqing Geng xgugeng

🏃‍♂️
Running
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHS]
"EnableExtraDomainType"=dword:00000001
"Enable Double Pinyin"=dword:00000001
"DoublePinyinScheme"=dword:0000000a
"UserDefinedDoublePinyinScheme0"="Flypy*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"
@xgugeng
xgugeng / git-reset-author.sh
Last active June 16, 2022 04:36 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Guoqing Geng'
GIT_AUTHOR_EMAIL='xgugeng@gmail.com'
GIT_COMMITTER_NAME='Guoqing Geng'
GIT_COMMITTER_EMAIL='xgugeng@gmail.com'
" HEAD
@xgugeng
xgugeng / leetcode_retag.md
Created May 10, 2022 13:56 — forked from Windsooon/leetcode_retag.md
Retag most popular Leetcode problems

osjobs

海外兔

website

@xgugeng
xgugeng / caps-ctrl.reg
Last active April 18, 2022 10:55
Map CapsLock to Ctrl on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@xgugeng
xgugeng / wakapi-caddy.conf
Created April 17, 2022 23:45
Caddyfile for Wakapi
wakapi.example.com {
log {
output file /var/log/caddy/wakapi.log
}
# Optional for Cloudflare
tls {
dns cloudflare {env.CF_API_TOKEN}
}
@xgugeng
xgugeng / seafile-caddy.conf
Last active May 25, 2024 08:33
Caddyfile for Seafile
seafile.example.com {
log {
output file /var/log/caddy/seafile.log
}
# Optional for Cloudflare
tls {
dns cloudflare {env.CF_API_TOKEN}
}