Making a wheel

python3 sdist bdist_wheel

Activate a venv:

source venv/bin/activate

Change ownership of a file

sudo chown a file_name

pytest class level fixtrues

def setup_method(self, monkeypatch):

An awesome python repr

Run chrome without CORs

google-chrome --disable-web-security --user-data-dir=/tmp

docker compose

docker-compose down && docker-compose up -d


connect 38:18:4C:17:DA:4E WH-CH700N
connect 34:88:5D:CC:B8:AF Keyboard K380
connect C9:09:A1:92:5D:B1 MX Anywhere 2
Posted @ 2020-09-22 10:50

From the project directory:

python3.6 -m venv ./env

Activate it:

source env/bin/activate

Posted @ 2019-11-10 22:43

word = word.translate(str.maketrans('','',string.punctuation))

Posted @ 2019-03-10 15:51

Use specific version of python:

mkvirtualenv -p /usr/bin/python3.6 env_name
Posted @ 2019-02-28 12:52