Programming Languages

See also Bash , which I use much more than anything.


How to make virtualenvs portable

Like the below, adjust accordingly:

python3 -m venv --copies venv

sed -i '43s/.*/VIRTUAL_ENV="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}" )")" \&\& pwd)"/' venv/bin/activate

sed -i '1s/.*/#!\/usr\/bin\/env python/' venv/bin/pip*

source venv/bin/activate

And (I believe, after pip install)

sed -i '1s/.*python$/#!\/usr\/bin\/env python/' venv/bin/*

Small Tools here

echo "hello world

A "REVERSE" regex thing. Regular Expressions

See also
Bash Resources