Simple example to scaling up Docker containers (spawning multiple containers) and load balancing them using Nginx and Traefik.
To scale myapp
service up to 3 containers, use --scale
.
docker compose up --scale myapp=3 --detach
I was investigating the use of Hardware Security Modules (HSMs) to better secure some stuff at work. Our choice was a Nitrokey HSM 2 for its convenient price, features and open approach, including hardware. Unfortunately Nitrokeys's documentation is sparse at best and there is not much available documentation online to guide new users to get HSMs to work with GnuPG (GPG): it's even the opposite with some forum posts indicating that the Nitrokey HSM 2 is not compatible with GPG.
From what seems to be the current state of things, GPG works out of the box with OpenPGP cards (which are
Install Rhino 7 on Ubuntu based OS (KDE on Ubuntu Noble in this case) I used Wine 9.10 (Staging)
⚠This assumes a non existant wine prefix or even a wine installation. If you have an existing wine prefix there may be things that interfere with this guide.
sudo apt install wine wine32 winetricks mono-complete winbind
If a Linux machine locks up or freezes completely, use REISUB to restart it more gently than pushing the Power Button.
Hold down Alt
and the SysReq
(Print Screen
) keys, and then type R
E
I
S
U
B
, with 2-3 second delays between the key presses to give the commands a better chance to complete.
R
: Switch the keyboard from raw mode to XLATE modeE
: Send the SIGTERM signal to all processes except initI
: Send the SIGKILL signal to all processes except initS
: Sync all mounted filesystems# DILBERT | |
# Add this to your .bashrc or if you are using oh-my-zsh add a functions.zsh file under your oh-my-zsh/custom folder. | |
# Requirements: | |
# - Kitty terminal | |
# - ripgrep | |
# - ImageMagick | |
function dilbert () { | |
officialUrl=https://dilbert.com |
I hereby claim:
To claim this, I am signing this object:
This guide helps to configure the hibernation on a default Fedora35 (also worked fine in previous Fedora34) installation by using a swap file. The Fedora35 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:
$ swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100