Making a wheel

python3 setup.py sdist bdist_wheel

Activate a venv:

source venv/bin/activate

Change ownership of a file

sudo chown a file_name

pytest class level fixtrues

@pytest.fixture(autouse=True)
def setup_method(self, monkeypatch):
    pass

An awesome python repr

https://bpython-interpreter.org/

Run chrome without CORs

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

docker compose

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

Bluetooth

bluetoothctl
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
while sleep 1; do ls | wc -l; done

rm -r *.srt

ls -alh | grep '\.json$' | sort

Search all files for a specific extension:
find / -name "*.pdf"
Posted @ 2019-02-28 13:05