添加Ubuntu PPA源

不得不说,ubuntu的PPA(Personal Package Archives)这一点确实是比debian好用的地方,有一点Arch的AUR的感觉。在https://launchpad.net/ubuntu/+ppas搜索到需要的软件后,按页面提示add-apt-repository ppa:软件包信息即可安装。若提示命令不存在$ apt-get install python-softw...

继续阅读 »

减小golang编译出的二进制文件大小

go build编译出的文件都很大,一个hello world就要2m,我们可以在编译时加上如下参数:go build -ldflags "-s -w" [filename]‘-s’ 相当于strip掉符号表, 但是以后就没办法在gdb里查看行号和文件了。‘-w’ flag to the linker to omit the debug information 告知连接器...

继续阅读 »

我的vimrc

首先git clone一下vundle:$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim如果github速度过慢:$ git clone http://git.xuchen.wang/yachen/Vundle.vim.git ~/.vim/bundle/Vundle.vim

继续阅读 »