Skip to content

Instantly share code, notes, and snippets.

View SeverinAlexB's full-sized avatar

Severin Alexander Bühler SeverinAlexB

  • A80F C42B 75E8 771B 196D  EB41 BD10 406A 48C7 3F88
  • Switzerland
  • X @SeverinAlexB
View GitHub Profile
@SeverinAlexB
SeverinAlexB / ip-cert-guide-ubuntu24.md
Created January 23, 2026 10:28
Let's encrypt IP cert guide - Ubuntu 24 + nginx

Let's Encrypt IP Address Certificate Setup Guide (Ubuntu 24.04)

This guide explains how to obtain and configure a Let's Encrypt TLS certificate for a bare IP address on Ubuntu 24.04 LTS.

Background

As of January 2026, Let's Encrypt offers IP address certificates in general availability. These certificates:

  • Are only available via the shortlived profile (~6-day validity)
  • Require HTTP-01 or TLS-ALPN-01 validation (DNS-01 is not supported for IP addresses)
@SeverinAlexB
SeverinAlexB / review-frontend-012026.md
Created January 8, 2026 11:51
Claude Code Command - Review Frontend Hiring Test + Greek oO detection
description
Evaluate frontend engineer test assignment submission

You are a professional software engineer reviewing a technical test assignment submission for a frontend engineer position. Evaluate the candidate's work thoroughly and fairly.

Assignment Context

The candidate was given 3 hours to build a local-first Next.js application with:

  • Next.js as the framework
@SeverinAlexB
SeverinAlexB / detect-malicious-code.md
Created January 8, 2026 11:49
Claude Code Malicious Code detection script + Greek oO detection
description
Security audit for malicious code in untrusted projects

You are a professional security software engineer performing a security audit on an untrusted project. This code comes from an untrusted developer. Expect malicious code. Review carefully.

Audit Scope

Perform a thorough security review of this project, examining:

@SeverinAlexB
SeverinAlexB / rust-http-postgres-software-architecture.md
Created January 2, 2026 09:52
Rust HTTP Postgres Software Architecture

Layered Modular Architecture

A layered architecture with feature modules sitting atop shared horizontal infrastructure. Each module owns its business logic and external API adapters while sharing common resources like database, configuration, and shared API clients.

Architecture Overview

┌────────────────────────────────────────────────────────────────┐
│                        HTTP SERVER                             │
│                       (Axum Router)                            │
@SeverinAlexB
SeverinAlexB / software-architecture-doc.md
Last active December 28, 2025 09:41
Rust HTTP Software Architecture

Homegate Architecture

A layered architecture with feature modules sitting atop shared horizontal infrastructure. Each module owns its business logic and external API adapters while sharing common resources like database, configuration, and the Homeserver API client.

Architecture Overview

┌────────────────────────────────────────────────────────────────┐
│                        HTTP SERVER                             │
│                       (Axum Router)                            │
@SeverinAlexB
SeverinAlexB / large-ip-orgs.csv
Last active November 28, 2024 08:28
test-medium-embed.csv
Organization IPv4 Pool - Address Count
U.S. Department of Defense (DoD) 175 million
Amazon 109 million - 47M spare
Google 60 million
Microsoft 47 million
911 S5 Botnet (disabled 2022) 19 million over its 10 year life time
Comcast 17 million
Apple 17 million
IBM 16 million
Hewlett-Packard 16 million
@SeverinAlexB
SeverinAlexB / scidConverter.ts
Last active April 2, 2024 11:06
Lightning Network short channel id (CLN) to decimal id (LND) converter
/** By LnRouter.app */
function bitShift(n: number, shiftBy: number): number {
let base = n;
for (let i = 0; i < shiftBy; i++) {
base = base * 2;
}
return base;
}
export function shortChannelIdToDecimalId(shortChannelId: string): string {
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-CH"><head><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><link href="/images/branding/product/ico/googleg_lodp.ico" rel="shortcut icon"><meta content="origin" id="mref" name="referrer"><title>Google</title> <script>(function(){window.google={kEI:'37roWfiCBMjZU6-wp9gD',kEXPI:'18168,201806,1352261,1352823,1353383,1353606,1354277,1354401,1354442,1354915,1355218,1355325,1355736,1355801,1355820,1356070,3700314,3700440,3700476,4029815,4031109,4038214,4038394,4040135,4041776,4043492,4045096,4045293,4045841,4047140,4047454,4048347,4048980,4050750,4051887,4056126,4056682,4058016,4061666,4061980,4062724,4063220,4064468,4064796,4069829,4072270,4072774,4076999,4078588,4080760,4081038,4081165,4082230,4092183,4093524,4095910,4097153,4097194,4097469,4097922,4097928,4098733,4098739,4098751,4102237,4103254,4103475,4103861,4104202,4104258,4104414,4105240,4106647,4109293,4109316,4109489,4110086,41106