Skip to content

Instantly share code, notes, and snippets.

View sstorholm's full-sized avatar

Sebastian Storholm sstorholm

View GitHub Profile
@yorickdowne
yorickdowne / friday.md
Last active December 12, 2025 15:24
Debian 13 trixie upgrade

Debian 13

Caution Upgrading from Debian 12 to Debian 13 on machines with mdadm has intermittently failed for me; symptom is that grub EFI is not up to date and system boots into BIOS. Root cause under investigation; it might not be related to mdadm.

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

@frozenex
frozenex / bulk-convert.ps1
Last active January 14, 2024 02:04
Bulk convert images to webp format using cwebp library in windows
# Copy this file to any directory containing images & then run this script in powershell
# Get all png images in the current directory & convert it to webp format
$images = Get-ChildItem -Path (Get-Location) -Filter *.png
foreach ($image in $images) {
$fileName = $image.DirectoryName + "\" + $image.BaseName + ".webp"
cwebp.exe -q 80 $image.FullName -o $fileName
}
@Hakky54
Hakky54 / openssl_commands.md
Last active December 9, 2025 10:34 — forked from p3t3r67x0/openssl_commands.md
OpenSSL Cheat Sheet

OpenSSL Cheat Sheet 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@floudet
floudet / telnet-rfc-5322-email.sh
Created July 17, 2016 14:45
Send a RFC 5322 compliant email using telnet
$ telnet mail.example.org 25
Trying XXX.XXX.XXX.XXX...
Connected to XXX.XXX.XXX.XXX.
Escape character is '^]'.
220 *********************************
ehlo server.example.org
250-mail.example.com
250-PIPELINING
250-SIZE 20480000
250-ETRN
@felixhummel
felixhummel / 418.conf
Created February 23, 2016 10:02
the last nginx config you will ever need
server {
listen 80 default_server;
location / {
default_type text/plain;
return 418 "418 I'm a teapot\n";
}
}