This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import subprocess | |
import pathlib | |
import winreg | |
# | |
# This script turned out to be quite large, so might as well document the recipe here.. | |
# | |
# Windows (like many services...) does not support transparent backgrounds for profile | |
# pictures natively, it squashes beautiful, lossless, transparent .png files into |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Powered by https://github.com/WerWolv/ImHex | |
# | |
# /System/Library/Kernels/kernel | |
# uname -a -> xnu-8020.101.4 | |
struct nullstr { | |
char data[while(std::mem::read_unsigned($, 1) != 0x00)]; | |
}; | |
struct sdt_entry { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function lookupify(...) | |
local hash = {} | |
local function entry(key, ...) | |
if key == nil then return end | |
hash[key] = true | |
return entry(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Global 'nil' value | |
NIL = {} | |
-- Localise for faster access | |
local pcall = pcall | |
local string_len = string.len | |
local string_sub = string.sub | |
local string_find = string.find |