Journal of my recent activities

Podman (docker) cheatsheet

podman logs postgres12

Postgresql from container

$ podman pull postgres
$ mkdir ~/podman/volumes/postgres
$ podman run --rm --name pg-docker -e POSTGRES_PASSWORD=docker  
   -d -p 5432:5432 \r
   -v $HOME/podman/volumes/postgres:/var/lib/postgresql/data:z postgres
$ podman ps
$ psql -h localhost -W -U postgres
$ podman stop pg-docker

The :z suffix solves the permission denied problem for the volume.

#podman #docker

Don't write command-line interfaces (generate them)

Instead of writing a command line menu use hug or typer - it is like implementing REST interface for your command line program.

#python

Setting up a time zone

timedatectl list-timezones | grep Wars
sudo timedatectl set-timezone Europe/Warsaw
timedatectl status

How To Use Journalctl to View and Manipulate Systemd Logs

#linux

Improve the Font Rendering In Firefox

Create a file ~/.fonts.conf and put the contents from: StackExchange

#linux

Arduino RFID reader

micropython-mfrc522, micropython-and-rfid-rc522

#soft #arduino

Arduino light detector

import machine
a = machine.ADC(0)
a.read()/1024

#soft #arduino

Check internet speed connection from bash

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

speedtest-cli #linux #soft

Podman - Docker on Fedora system

How To Install Docker On Fedora 32 Or 31 (And Alternatives)