Skip to content

Instantly share code, notes, and snippets.

View RavuAlHemio's full-sized avatar

Ondřej Hošek RavuAlHemio

View GitHub Profile
@RavuAlHemio
RavuAlHemio / Evva4KSBowAndStop.scad
Created November 16, 2019 21:07
the bow and stop of a standard EVVA 4KS key (SL)
// unit: 1mm
key_thickness = 2.26;
bow_width = 25.5;
bow_corner_radius = 6.0;
bow_corner_advance = 12.25;
bow_curve_advance = 10.0;
bow_curve_radius = 3.0;
bow_curve_outer_offset = 3.25;
stop_width = 13.0;
@RavuAlHemio
RavuAlHemio / mds2midi.py
Last active January 30, 2026 22:13
MDS to standard MIDI file converter
#!/usr/bin/env python3
#
# MDS to standard MIDI file converter
#
# see also http://www.vgmpf.com/Wiki/index.php?title=MDS
#
import argparse
import io
import struct
from typing import BinaryIO, List, Optional
// paste this into the JavaScript console while Hetzner's noVNC is open
RFB.messages.keyEvent(rfb._sock, XK_Alt_L, 1);
RFB.messages.keyEvent(rfb._sock, XK_Sys_Req, 1);
// raise elephants here as required
RFB.messages.keyEvent(rfb._sock, XK_9, 1);
RFB.messages.keyEvent(rfb._sock, XK_9, 0);
RFB.messages.keyEvent(rfb._sock, XK_H, 1);
RFB.messages.keyEvent(rfb._sock, XK_H, 0);
@RavuAlHemio
RavuAlHemio / payne.c
Created July 14, 2018 19:29
Max Payne 2 .ras file encryption/decryption algorithm
#include <stdint.h>
#include <stdio.h>
static uint8_t ror8(uint8_t input, size_t rot_bits)
{
uint8_t rot = (uint8_t)(rot_bits % (sizeof(input) * 8));
return (input >> rot) | (input << ((sizeof(input) * 8) - rot));
}
static uint8_t rol8(uint8_t input, size_t rot_bits)
@RavuAlHemio
RavuAlHemio / Restoring an utterly destroyed DFSR-replicated SYSVOL from backup.md
Last active January 25, 2026 16:19
Steps to restore an utterly destroyed DFSR-replicated SYSVOL from backup

Restoring an utterly destroyed DFSR-replicated SYSVOL from backup

Warning: this is not official Microsoft documentation and some of these steps might not actually be supported.

This guide is provided "as is", without warranty of any kind, express or implied. In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from, out of or in connection with applying the steps outlined in this guide.

When to use

using System;
using System.DirectoryServices;
using System.Runtime.InteropServices;
using System.Net;
using System.Security.Cryptography;
using System.Text;
public class RebuildDomainTrust
{
static void UsageAndExit(int exitCode)

Kranichkirchen

Ondras Namen für den OOP-LVA-Team-Verteiler und Prof. Puntigams Reaktionen darauf.

Kontrollorgane des Kranichkirchener Kürbiskonstruktionskonzerns KG

Ich fürchte Schlimmes für den Kürbiskonstruktionskonzern. Wenn sich die Kranichkirchener so gut verstehen wie ''[Gruppe]'' 110, wird die KG in wenigen Wochen Geschichte sein.

Kranichkirchener Koalition für Konkludenz im Kommerz

@RavuAlHemio
RavuAlHemio / wann-werde-ich-adeliger.md
Created November 13, 2016 15:50
österreichische Amtstitel im allgemeinen Verwaltungsdienst

Beamte werden in Verwendungs- und darunter in Funktionsgruppen eingeteilt, Vertragsbedienstete in Entlohnungs- und darunter in Bewertungsgruppen.

Die Verwendungsgruppen von Beamten werden in die Funktionsgruppen Grundlaufbahn (GL) und mehrere nummerierte Funktionsgruppen (FG) unterteilt. Die Bewertungsgruppen von Vertragsbediensteten werden teilweise in Bewertungsgruppen unterteilt.

Für Beamte der Verwendungsgruppe A1, die einen Bachelor- und keinen höheren Abschluss besitzen, gelten teilweise andere mindeste Besoldungsdienstalter; die relevanten Spalten sind in der Zeile Funktionsgruppe mit dem Zusatz Bach ausgewiesen.

@RavuAlHemio
RavuAlHemio / NotDeepNote.cs
Created October 19, 2016 00:28
Not Deep Note (the THX sound)
// Not Deep Note
//
// Released into the public domain.
// http://creativecommons.org/publicdomain/zero/1.0/
using System;
using System.IO;
static class NotDeepNote
{
@RavuAlHemio
RavuAlHemio / deutsch.txt
Last active March 27, 2016 17:57
ICAO airport codes that match against a wordlist
BIST
EBBE
EDEL
EDEN
EDER
EDLE
EFEU
EFTA
EGEL
EGOS