Skip to content

Instantly share code, notes, and snippets.

View huoguangjin's full-sized avatar

hgj huoguangjin

  • Tencent
View GitHub Profile
@huoguangjin
huoguangjin / settings.js
Created September 23, 2023 03:59
Surfingkeys settings
settings.scrollStepSize = 80;
settings.richHintsForKeystroke = 200;
settings.omnibarMaxResults = 20;
settings.focusAfterClosed = 'left';
settings.interceptedErrors = ['*'];
settings.cursorAtEndOfInput = false;
/*
clickablePat
ignoredFrameHosts = [''];
clickableSelector = '';
@huoguangjin
huoguangjin / color_demo.vim
Last active November 29, 2019 12:22
show ctermbg color
let num = 255
while num >= 0
exec 'hi col_'.num.' ctermbg='.num.' ctermfg=white'
exec 'syn match col_'.num.' ".ctermbg='.num.'." containedIn=ALL'
" call append(0, 'ctermbg='.num.':....')
let num = num - 1
endwhile
" call :so %
"
git config --global alias.lg "log --color --graph --abbrev-commit -- --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
git config --global alias.lg 'log --graph --decorate --abbrev-commit --oneline --all'
git log --graph --decorate --abbrev-commit --oneline --all
git log --graph --decorate --abbrev-commit --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
git log --graph --decorate --abbrev-commit --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all