Skip to content

Instantly share code, notes, and snippets.

View nezvers's full-sized avatar

Agnis Aldiņš "NeZvērs" nezvers

View GitHub Profile
@nezvers
nezvers / nob_raylib.c
Last active November 9, 2025 22:26
nob.h template for raylib with fetch (Cmake style) using only C & Curl/Wget
#define NOB_IMPLEMENTATION
// #define NOB_STRIP_PREFIX
#define NOB_WARN_DEPRECATED
#include "nob.h" // https://github.com/tsoding/nob.h
#include <stdio.h>
#include <string.h>
#define PROJECT_NAME "NoBuild_Raylib"
#define BUILD_FOLDER "build/"
@nezvers
nezvers / carve.c
Created December 1, 2025 09:05
Binary extraction in C
#include <stdio.h>
void carve_file(const char *input_file, const char *output_file, size_t start_byte, size_t end_byte){
FILE *file_in = NULL;
FILE *file_out = NULL;
file_in = fopen(input_file, "rb");
if (!file_in) {
printf("Failed to open input file - %s\n", input_file);
goto defer;