Notes

Ubuntu14.04 安装lxml的依赖

1
sudo apt-get install libxml2-dev libxslt-dev python-dev zlib1g-dev

Python 生成SECRET_KEY

1
2
3
python
>> import os
>> os.urandom(24)

ArchLinux 使用 navicat 出现access violationat address 错误

解决方式是在数据库连接的方式中启用SSH通道

ArchLinux 安装 YouCompleteMe vim插件

可按以下操作:

1
2
3
yaourt -S vim-youcompleteme-git
mv ~/.vim/bundle/YouCompleteMe/third_party ~/.vim/bundle/YouCompleteMe/third_party-bak
sudo ln -s /usr/share/vim/vimfiles/third_party ~/.vim/bundle/YouCompleteMe/third_party

直接编译

1
2
3
cd ~/.vim/bundle/YouCompleteMe
# 前提:已安装clang --- sudo pacman -S clang
python install.py --clang-completer --system-libclang

docker 更换ubuntu的源为国内源

1
sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list