Skip to content

Instantly share code, notes, and snippets.

View tarc's full-sized avatar

Tarcísio Genaro Rodrigues tarc

  • São Paulo, Brazil
View GitHub Profile
@Erfan-Ahmadi
Erfan-Ahmadi / lib.cpp
Created November 28, 2024 06:46
malloc detour using minhook (CRT override)
#include "lib.h"
#include "../3rd/minhook/include/MinHook.h"
#include "../3rd/minhook/src/buffer.c"
#include "../3rd/minhook/src/hook.c"
#include "../3rd/minhook/src/trampoline.c"
#include "../3rd/minhook/src/hde/hde64.c"
typedef void* (*fn_malloc)(size_t size);
typedef void (*fn_free)(void* ptr);
@CMCDragonkai
CMCDragonkai / nix_inputs.md
Last active January 11, 2026 09:04
Understanding Nix Inputs #nix

Understanding Nix Inputs

Every Nix derivation produces a Nix store output that has 3 things:

  • Executables
  • Libraries
  • Data

Executables are always exported using the PATH environment variable. This is pretty much automatic.

@SalahHamza
SalahHamza / install_ngrok.md
Last active November 24, 2025 16:03
How to install ngrok on linux subsystem for windows
@robingustafsson
robingustafsson / jwt.js
Created October 14, 2017 20:16
Simple JWT example for k6 load testing tool
import crypto from "k6/crypto";
import encoding from "k6/encoding";
const algToHash = {
HS256: "sha256",
HS384: "sha384",
HS512: "sha512"
};
function sign(data, hashAlg, secret) {