Skip to content

Instantly share code, notes, and snippets.

Ke Fei zer4tul

View GitHub Profile
@zer4tul
zer4tul / hacker-howto.md
Last active Jun 3, 2020
Simplified Chinese edition of ESR's How To Become A Hacker
View hacker-howto.md
@zer4tul
zer4tul / weechat.md
Last active Jul 25, 2019
A Simple, Base16 Friendly, Weechat Setup
View weechat.md

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl buffer_autoclose.py iset.pl go.py colorize_nicks.py
@zer4tul
zer4tul / 提问的智慧.md
Last active Jun 21, 2020
Simplified Chinese edition of "How To Ask Questions The Smart Way"
View 提问的智慧.md
@zer4tul
zer4tul / gist:175ce29a0a6703ccbbf6
Last active Mar 27, 2018
Notes for chinese encoding convertion.
View gist:175ce29a0a6703ccbbf6
@zer4tul
zer4tul / gist:6477470
Created Sep 7, 2013
Cisco's Anyconnect CSD WRAPPER for OpenConnect
View gist:6477470
#!/bin/sh
# Cisco Anyconnect CSD wrapper for OpenConnect
CSTUB="$HOME/.cisco/hostscan/bin/cstub"
$ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]
then
@zer4tul
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
You can’t perform that action at this time.