Skip to content

Instantly share code, notes, and snippets.

View hugmyndakassi's full-sized avatar
🤍
I may be slow to respond. 🥰

Þórhildur hugmyndakassi

🤍
I may be slow to respond. 🥰
View GitHub Profile
@lucasg
lucasg / apisetlookup.c
Last active June 14, 2024 20:08
Api set library lookup resolver
#include <windows.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <sal.h>
#include <assert.h>
#ifdef _X86_
#error "This snippet only build in 64-bit due to heavy use of uintptr arithmetics."
#endif
@ArseniyShestakov
ArseniyShestakov / add.sh
Last active August 25, 2023 14:14
My compiler alternatives
# Cleanup old alternatives
update-alternatives --remove-all cc
update-alternatives --remove-all c++
update-alternatives --remove-all gcc
update-alternatives --remove-all g++
update-alternatives --remove-all clang
update-alternatives --remove-all clang++
update-alternatives --remove-all icc
update-alternatives --remove-all icc++