Skip to content

Instantly share code, notes, and snippets.

@Trigus42
Trigus42 / docker_in_distrobox.md
Created May 24, 2025 12:12
Rootless Docker in Distrobox on Silverblue/Kinoite
systemctl --user enable podman.socket
systemctl --user start podman.socket
systemctl --user status podman.socket
distrobox create --image quay.io/fedora/fedora-toolbox:41 \
  --additional-packages "docker docker-compose" \
 --additional-flags "--env DOCKER_HOST=unix:////run/host/run/user/$UID/podman/podman.sock" \
@Trigus42
Trigus42 / fix_play_services_sms_perm.md
Last active July 14, 2025 15:15
Fix Play Services SMS Permission

Issue

If for one reason or another you need to enable the SMS permissions using the Settings app or like this:

adb shell pm grant com.google.android.gms android.permission.RECEIVE_SMS
adb shell pm grant com.google.android.gms android.permission.READ_SMS
adb shell pm grant com.google.android.gms android.permission.SEND_SMS
@Trigus42
Trigus42 / 01nginx-tls-sni.md
Created December 20, 2022 15:10 — forked from kekru/01nginx-tls-sni.md
nginx TLS SNI routing, based on subdomain pattern

Nginx TLS SNI routing, based on subdomain pattern

Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.

prerequisites

  • at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
  • check nginx -V for the following:
    ...
    TLS SNI support enabled
@Trigus42
Trigus42 / full-disk-encryption-arch-uefi.md
Created November 8, 2022 17:51 — forked from huntrar/full-disk-encryption-arch-uefi.md
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

Reinstall GRUB with LVM on LUKS from live/rescue system with/without EFI on Debain based systems

Environment

lsblk:

NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
nvme1n1             259:3    0 465,8G  0 disk  
├─nvme1n1p1         259:4    0 334,8G  0 part  
├─nvme1n1p2         259:5    0    61M  0 part           <-- EFI parition (FAT32)
@Trigus42
Trigus42 / rename_multiarch_docker_image.md
Last active July 21, 2021 11:13
Rename multi arch docker image on Docker Hub

How-to rename a multi-arch docker image on Docker Hub

Do for all images:

Pull image by hash:

docker pull <username>/<repo>:<tag>@sha256:<image hash>

docker pull user/multiarch-image:latest@sha256:8356dea58369f566c36494d11a7d7cbbbacfae6b8d130e90979b92516ce348bf

Rename image: