Simple Python Isolation with User Compiling

Background

I would like to have a working python environment with python 2.7.12 and a series of packages. It shall be efficient, and yet easy to setup. The anaconda distribution almost satisfies my needs, except that it’s unreasonably slow to load, due to its bundle of system libraries. There are also python version managers such as PYENV and PYTHONZ. The drawback of PYENV is the shims, which are scripts to launch binaries such as python-2 and pip. shims make powerline-client slow, which is undesirable. As to PYTHONZ, it only handles multiple versions of python, no other infrastructure is provided.

After some experimentation, I found that just compile python from source and install it into customized location works just fine. There are some caveats, so I record it here.

I do not like this ideas is a linter test. Linter. How can one use it?


  Read the rest of this post

Poorman’s Usbstick Encryption

Recently I need to setup an encrypted usbstick to carry some files. The first and best approach is of course hardware-encrypted usbsticks. However, they are not cheep at all. And they support only digital passphrases. Some encrypted usbsticks needs special software to operate, thus does not work with Linux system. Luckily enough, I found LUKS and managed to setup an encrypted usbstick, which also works on Windows.


  Read the rest of this post
Newer