This is somes personnals documentation build all long my career. You will find it only in the english version.

Sections

The Basics awk is treat each line as a table, by default space are separators of columns. General syntax is awk 'search {action}' file_to_parse. # Give the value higher than 75000 in column $4 df | awk '$4 > 75000' # Print the all line when column $4 is higher than 75000 df | awk '$4 > 75000 {print $0}' But if you...

Description Buildah: is used to build Open Container Initiative (OCI) format or Docker format container images without the need for a daemon. Podman: provides the ability to directly run container images without a daemon. Podman can pull container images from a container registry, if they are not available locally....

# see images available on your hosts docker image list # equal to above docker images REPOSITORY TAG IMAGE ID CREATED SIZE httpd latest 6fa26f20557b 45 hours ago 164MB hello-world latest 75280d40a50b 4 months ago 1.69kB # give sha docker images --no-trunc=true # delete unused images docker rmi $(docker images -q) #...

The Basics sed -e '…' -e '…' # Several execution sed -i # Replace in place sed -r # Play with REGEX # The most usefull sed -e '/^[ ]*#/d' -e '/^$/d' <fich.> # openfile without empty or commented lines sed 's/ -/\n -/g' # replace all "-" with new lines sed 's/my_match.*/ /g' # remove from the match till end of line sed...

The Boot - starting process - BIOS est lancé automatiquement et détecte les périphs. - Charge la routine de démarrage depuis le MBR (Master Boot Record) - C'est le disk de boot et se trouve sur le premier secteur du disque dur. - Le MBR contient un loader qui charge le "second stage loader" c'est le "boot loader" qui...

Interesting example from justfile documentation: where it create mktemp and set it in variable then by concatenation you get a full path to the tar.gz. Then the Recipe “publish” create the artifact again and push it to a server. tmpdir := `mktemp` # Create a tmp file version := "0.2.7" tardir := tmpdir /...

Shell Variable $$var $$( python -c ‘import sys; print(sys.implementation.name)’ ) Make Variable T ?= foo # give a default value T := $(shell whoami) # execute shell immediately to put in the var PHONY to execute several makefile Example 1 SUBDIRS = foo bar baz ## dir is a Shell variables ## SUBDIR and MAKE are...

Deploy a Nexus3 in container on VM Load the image podman pull sonatype/nexus3:3.59.0 podman save sonatype/nexus3:3.59.0 -o nexus3.tar podman load < nexus3.tar Create a service inside /etc/systemd/system/container-nexus3.service with content below: [Unit] Description=Nexus Podman container Wants=syslog.service...

Pypi Repo for airgap env Let’s take as an example py dependencies for Netbox # Tools needed dnf install -y python3.11 pip install --upgrade pip setuptool python-pypi-mirror twine # init mirror python3.11 -m venv mirror mkdir download # Get list of Py packages needed curl...