Skip to content

Instantly share code, notes, and snippets.

@tarjeihsch
tarjeihsch / gist:6fe7e36675cf2ac5a7b4d78733a9af2c
Created February 27, 2025 23:52
XOR Cipher (NASM x86_64 Linux)
%define CHUNK_SIZE 4096
%define KEY_SIZE 64
%define PATH_SIZE 256
section .bss
input_buffer resb CHUNK_SIZE
output_buffer resb CHUNK_SIZE
argument_key resb KEY_SIZE
argument_path resb PATH_SIZE
@tarjeihsch
tarjeihsch / arch_linux_installation_guide.md
Last active December 13, 2024 20:25 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
// https://en.wikipedia.org/wiki/Hermite_interpolation
inline FVector HermiteInterpolation(const FVector& P0, const FVector& P1, const FVector& V0, const FVector& V1, const float Alpha)
{
const float H1 = 2 * FMath::Pow(Alpha, 3) - 3 * FMath::Pow(Alpha, 2) + 1;
const float H2 = -2 * FMath::Pow(Alpha, 3) + 3 * FMath::Pow(Alpha, 2);
const float H3 = FMath::Pow(Alpha, 3) - 2 * FMath::Pow(Alpha, 2) + Alpha;
const float H4 = FMath::Pow(Alpha, 3) - FMath::Pow(Alpha, 2);
return H1 * P0 + H2 * P1 + H3 * V0 + H4 * V1;