Category

Snippets

All 50 posts in Snippets.

How to generate a QR code in Python

How to generate QR codes in Python using the qrcode library: save a PNG from a URL, set the size, border and error correction, export an SVG for print, and make a Wi-Fi QR code.

How to install multiple instances of Ubuntu in WSL2

A guide to installing multiple fresh instances of Ubuntu in WSL2

Upgrade Python to latest version (3.15) on Ubuntu Linux or WSL2

A complete guide on how to upgrade Python to the latest version (Python 3.15) on Ubuntu Linux and solve associated issues. Also works on WSL2. Can also be used to upgrade to any Python version.

Add new users with SSH access to EC2 instance

How to new additional user with keypair for SSH access to EC2 instance

Run Selenium and Chrome on WSL2 using Python and Selenium webdriver

A guide to installating, configuring and running Selenium and Chrome for Testing on Windows Subsystem for Linux (WSL2) and run tests using Python and Selenium webdriver.