Skip to content

Instantly share code, notes, and snippets.

@n3rdopolis
n3rdopolis / kerneltester.sh
Created April 29, 2023 01:42
Build a Linux kernel with a initrd, to test it and its modules in QEMU with a test script
#! /bin/bash
mkdir -p /var/cache/kerneltest
#Make a file system image for the VM, and mount it.
if [[ -e /var/cache/kerneltest/fs.img ]]
then
rm /var/cache/kerneltest/fs.img
fi
truncate -s 2G /var/cache/kerneltest/fs.img
mkfs.ext4 /var/cache/kerneltest/fs.img
@n3rdopolis
n3rdopolis / ConvertMvpText-ToScrubText.ps1
Last active February 26, 2021 02:34
ConvertMvpText-ToScrubText.ps1
#Licence GPLv2
#
#CharsToLettersMapping.csv
#CharsToLettersMapping.json
#files are not needed for this script, but they are generated for fixed usage, if you don't want to rely on parsing files from Unicode.org to make your own variant
#
function ConvertMvpText-ToScrubText($MVPText)
{
#Try to be efficient in using files from Unicode.org
if ($Global:StrangeCharsToLettersMapping -eq $Null)