Python Temperature Conversion

Convert Temperature Units Using a Python Script #!/usr/bin/python3 temp = input("Input the temperature you like to convert? (e.g., 45F, 102C etc.) : ") degree = int(temp[:-1]) i_convention = temp[-1] if i_convention.upper() == "C": result = int(round((9 * degree) / 5 + 32)) o_convention = "Fahrenheit" elif i_convention.upper() == "F": result = int(round((degree - 32) * 5 / 9)) o_convention = "Celsius" else: print("Input proper convention.
Read more →

Distrobox

https://github.com/89luca89/distrobox Needs Podman or Docker installed Commands distrobox-create - creates the container distrobox-enter - to enter the container distrobox-list - to list containers created with distrobox distrobox-rm - to delete a container created with distrobox distrobox-stop - to stop a running container created with distrobox distrobox-init - the entrypoint of the container (not meant to be used manually) distrobox-export - it is meant to be used inside the container, useful to export apps and services from the container to the host podman system df -v - check space used by containers Create Distrobox container distrobox-create –name <NAME> –image <DISTRO>:<TAG> ex.
Read more →

Quick Commands

Read more →

tmux cheatsheet

List tmux sessions: tmux ls Attach to a tmux session: tmux attach -t 0 Attach to last active tmux session: tmux a Press ctrl+b to issue a key binding Key bindings c = new window d = detach from tmux session n = next window p = previous window w = list all windows x = remove a pane $ - rename session % = split vertically & = remove a window " = split horizontally ?
Read more →

vim cheatsheet

Read more →