Skip to content

Instantly share code, notes, and snippets.

View iraizo's full-sized avatar
🖤

raizo iraizo

🖤
View GitHub Profile
@0xdevalias
0xdevalias / reverse-engineering-macos.md
Last active November 12, 2024 03:56
Some notes, tools, and techniques for reverse engineering macOS binaries
@ClickerMonkey
ClickerMonkey / types.ts
Last active August 8, 2024 00:25
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]