Skip to content

Instantly share code, notes, and snippets.


Ke Fei zer4tul

View GitHub Profile
zer4tul /
Last active Apr 22, 2022
Simplified Chinese edition of ESR's How To Become A Hacker
zer4tul /
Last active Aug 21, 2021
A Simple, Base16 Friendly, Weechat Setup

A Simple, Base16 Friendly, Weechat Setup


  • Some must-have scripts
  /script install
zer4tul / 提问的智慧.md
Last active May 17, 2022
Simplified Chinese edition of "How To Ask Questions The Smart Way"
View 提问的智慧.md
zer4tul / gist:175ce29a0a6703ccbbf6
Last active Mar 27, 2018
Notes for chinese encoding convertion.
View gist:175ce29a0a6703ccbbf6
zer4tul / gist:6477470
Created Sep 7, 2013
Cisco's Anyconnect CSD WRAPPER for OpenConnect
View gist:6477470
# Cisco Anyconnect CSD wrapper for OpenConnect
$ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]
zer4tul / gist:6060025
Created Jul 23, 2013
Force set enc/fenc/tenc same as your environment variable.
View gist:6060025
" Multi-encoding Setting
" Auto detect Asia language environment. your vim should be compiled with multi_byte option
if has("multi_byte")
"set bomb
set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,latin1
" CJK environment detection and corresponding setting
if v:lang =~ "^zh_CN"
" Use cp936 to support GBK, euc-cn == gb2312
set encoding=cp936
set termencoding=cp936