Skip to content

Instantly share code, notes, and snippets.

View chgeuer's full-sized avatar
🏠
Working from Düsseldorf

Dr. Christian Geuer-Pollmann chgeuer

🏠
Working from Düsseldorf
View GitHub Profile
  • 5 years old: Mum knows everything!
  • 7 years old: Mum knows.
  • 10 years old: Maybe Mum doesn’t know?!
  • 12 years old: Mum doesn’t know.
  • 14 years old: Mum's gone crazy!
  • 16 years old: Can’t take Mum seriously.
  • 18 years old: What does Mum know?!
  • 22 years old: Mum's talking rubbish!
  • 24 years old: I know more than Mum!
  • 26 years old: Mum seems to know some things after all.
# Quake III algorithm - Fast inverse square root using binary pattern matching
```elixir
Mix.install([
{:kino, "~> 0.17.0"}
])
```
## Section

Cornix Keyboard Build Guide

Complete setup guide for building ZMK firmware for the Cornix split ergonomic keyboard on Arch Linux.

Fresh Arch Linux Setup

1. Install Required Packages

# Core development tools and dependencies
sudo pacman -S base-devel git cmake ninja dtc python python-pip wget xz dfu-util

Rendevouz hashing

Mix.install([
  {:combination, "~> 0.0.3"}
], consolidate_protocols: false)

Section

Visualize primary and replicas (inspired by Waterpark)

Mix.install([
  {:kino, "~> 0.16.1"}
], consolidate_protocols: false)

Library modules

Enroll TS3

boltctl enroll --policy=auto --chain cd010000-0070-6d18-234c-b38ed643e102

/boot/loader/entries/linux-ts4.conf

title   Arch Linux (TS3 support)
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
IO.puts("Using .iex.exs file loaded from #{__DIR__}/.iex.exs")
defmodule Util do
def iex(n), do: IEx.Helpers.v(n)
def atom_status do
limit = :erlang.system_info(:atom_limit)
count = :erlang.system_info(:atom_count)
IO.puts("Currently using #{count} / #{limit} atoms")
end

Entra Domains

Mix.install([
  {:req, "~> 0.5.8"}
])

Libraries

Postgrex on Azure: How to connect to an Azure PostgreSQL DB from Elixir

Mix.install([
  {:x509, "~> 0.8.10"},
  {:postgrex, "~> 0.19.3"},
  {:req, "~> 0.5.7"},
  {:livebook_env, "~> 1.0"},
  {:kino, "~> 0.14.2"}
])

A simple .NET Core 8 sample running on Linux to show AES GCM encryption...

using System.Security.Cryptography;
using System.Text;

// https://learn.microsoft.com/en-us/dotnet/standard/security/cross-platform-cryptography#authenticated-encryption
Console.Out.WriteLine($"Is supported: {AesGcm.IsSupported}");