Skip to content

Instantly share code, notes, and snippets.

View AlexRuzin's full-sized avatar

StanRuzin AlexRuzin

View GitHub Profile
@eruffaldi
eruffaldi / CMakeLists.txt
Last active October 19, 2019 16:21
PortAudio to MP3
// https://github.com/eruffaldi/cmakego
find_package(cmakego COMPONENTS portaudio lame)
add_executable(testpa testpa.cpp)
target_link_libraries(testpa p::portaudio p::lame)
@bats3c
bats3c / ldrloaddll_hook.c
Last active July 16, 2024 14:44
Hook LdrLoadDll to whitelist DLLs being loaded into a process
#include <stdio.h>
#include <windows.h>
#include <winternl.h>
#define dwAllowDllCount 1
CHAR cAllowDlls[dwAllowDllCount][MAX_PATH] = {
"W:\\allowed.dll"
};
VOID HookLoadDll(LPVOID lpAddr);
@JetForMe
JetForMe / make-inst-rom.swift
Created December 10, 2022 15:10
Ben Eater CPU Microcode ROM Generator
#!/usr/bin/env swift sh
/**
This Swift script requires that you have [swift-sh](https://github.com/mxcl/swift-sh) installed:
```
$ brew install swift-sh
```
My CPU differs from Bean Eater’s, in that I program two different ROMs,