Skip to content

Instantly share code, notes, and snippets.

@ShoGinn
ShoGinn / gist:e5a75126ec9780825cd39dbbce4e192d
Last active August 16, 2026 12:38
Self-Hosting HP UEFI BIOS Updates via Local HTTP (Elitedesk 800 G5)

Self-Hosting HP UEFI BIOS Updates via Local HTTP

HP commercial desktops (like the EliteDesk 800 G5) support network BIOS updates from the UEFI setup screen. However, modern HP endpoints enforce HTTPS/TLS configurations that older UEFI network stacks cannot negotiate, resulting in network connection failures.

You can resolve this by mirroring HP's upstream files and hosting them over plain HTTP (Port 80) from any secondary machine on your local network.


Architecture & Request Flow

@Lightnet
Lightnet / sample_input.zig
Last active June 26, 2026 18:33
Fake Terminal Input Zig 0.16.0 SDL 3
const std = @import("std");
const zsdl3 = @import("zsdl3"); // https://github.com/felixuxx/zsdl3
pub const TerminalInput = struct {
buffer: std.ArrayList(u8) = .empty,
history: std.ArrayList([]const u8) = .empty,
cursor_pos: usize = 0, // tracks byte index offset from the START
pub fn init() TerminalInput {
return .{};

Introduction

I've finally sat down and completed my network migration from my ISP's (Telia LT) GPON terminal over to my own router using SFP module. This guide will provide step by step guide, how to do that.

To do that, you need a few things prior to starting, namely:

  • GPON SFP(+) module with an unlocked serial number configuration (e.g. here),
  • Router/Gateway to plug that module (e.g. UDM-Pro,
const std = @import("std");

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    const a = gpa.allocator();

    const hoge_str = try a.dupe(u8, "hogehoge");
    defer a.free(hoge_str);
@uulm-janbaudisch
uulm-janbaudisch / package-msys.bash
Created December 18, 2023 11:55
A packaging script for creating distributable archives of software built in MSYS2.
#!/bin/bash
# Check if running from within MSYS2.
if [ -z "$MSYSTEM" ];
then
>&2 echo "This is intended to be run from within an MSYS2 environment."
exit 1
fi
# Check arguments for correct length.
@zidenis
zidenis / 5_steps_for_creating_templates_and_vms_on_proxmox_using_linux_distros_cloud_images.md
Last active April 25, 2026 16:54
Creating Templates and Virtual Machines on Proxmox using cloud images from various Linux distributions.

5 Steps for Creating Templates and Virtual Machines on Proxmox using Linux Distro's Cloud Images

This tutorial guides you through the process of creating Templates and Virtual Machines on Proxmox using cloud-based images from various Linux distributions. We provide clear instructions for Alma Linux 9, Amazon Linux 2, CentOS 9, Fedora 38, Oracle Linux 9, RHEL 9, Rocky Linux 9, and Ubuntu 23.04 Lynx Lobster.

Note: The instructions have been tested on Proxmox 8.0.4.

Let's begin by choosing the cloud-based image. If you already have your preferred Linux distribution, skip to the 1st step.

To assist in making informed choices when selecting a Linux distribution for your virtual machines, we've compiled a table showcasing key characteristics of each cloud image. This table provides a snapshot of important attributes, including kernel version, Python version, number of processes initialized after boot, number of packages installed, free memory after boot, VM disk size, root partition disk size, used size on t

@benitogf
benitogf / mirror.sh
Last active October 5, 2025 15:31
ZFS mirror ubuntu boot drive
#!/bin/sh
# Assumptions and requirements
# - All drives will be formatted. These instructions are not suitable for dual-boot
# - No hardware or software RAID is to be used, these would keep ZFS from detecting disk errors and correcting them. In UEFI settings, set controller mode to AHCI, not RAID
# - These instructions are specific to UEFI systems and GPT. If you have an older BIOS/MBR system, please use https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2020.04%20Root%20on%20ZFS.html
# change the these disks variables to your disks paths (check with lsblk)
DISK1="/dev/nvme0n1"
DISK2="/dev/nvme1n1"

All digest-* packages built with the same GPG key:

$ gpg --list-keys
pub   rsa4096 2022-06-30 [SC]
      A5EA7083CF9513E99A476505B081E2685FE35E6E
uid           [ultimate] MNX Cloud Package Signing (Linux) <pkgsrc+linux@smartos.org>
sub   rsa4096 2022-06-30 [E]