查看文件的編碼
enca -L zh_CN file
轉(zhuǎn)換文件編碼
enca -L zh_CN -x UTF-8 file // 將文件編碼轉(zhuǎn)換為UTF-8并覆蓋原文件
enca -L zh_CN -x UTF-8 file1 file2 //不覆蓋原文件
虛擬機靜態(tài)IP無效
VMware 的虛擬機拷貝到另外的操作系統(tǒng)后锻狗,NAT方式的靜態(tài)IP無效掌腰,這是因為拷貝后MAC地址發(fā)生了變化狰住,但ifcfg文件中的MAC地址沒有改變,改過就可齿梁。
Sublime 作為git的編輯器
The latest build 2181 just added support for the -w (wait) command line argument. The following configuration will allow ST2 to work as your default git editor on Windows. This will allow git to open ST2 for commit messages and such.
git config --global core.editor "'c:/program files/sublime text 2/sublime_text.exe' -w"