Skip to content

Instantly share code, notes, and snippets.

View zer4tul's full-sized avatar

Ke Fei zer4tul

View GitHub Profile
@zer4tul
zer4tul / gist:6060025
Created July 23, 2013 05:18
Force set enc/fenc/tenc same as your environment variable.
" 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
@zer4tul
zer4tul / gist:6477470
Created September 7, 2013 17:25
Cisco's Anyconnect CSD WRAPPER for OpenConnect
#!/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:175ce29a0a6703ccbbf6
Last active March 27, 2018 22:06
Notes for chinese encoding convertion.
@zer4tul
zer4tul / 提问的智慧.md
Last active April 9, 2024 01:20
Simplified Chinese edition of "How To Ask Questions The Smart Way"
@zer4tul
zer4tul / weechat.md
Last active August 21, 2021 21:12
A Simple, Base16 Friendly, Weechat Setup

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 / hacker-howto.md
Last active October 11, 2023 07:15
Simplified Chinese edition of ESR's How To Become A Hacker