Skip to content

Instantly share code, notes, and snippets.

View BlackOfWorld's full-sized avatar
🐈‍⬛
Busy with life

BlackOfWorld

🐈‍⬛
Busy with life
View GitHub Profile
@BlackOfWorld
BlackOfWorld / SuperReturn.c
Created June 21, 2025 20:23 — forked from namazso/SuperReturn.c
SuperReturn
// Return, but across multiple frames.
//
// This function unwinds the given number of frames, then sets the return value provided, emulating as if this number
// of functions returned, with the last one returning the value provided in RetVal. Can be used to hook a callee when
// you don't have a convenient way to hook it directly and actually just want to stub it out with a return value.
//
// @param FramesToSkip The number of frames to skip, starting from the current frame.
// @param RetVal The value to return from the last frame.
// @param Context Context to start from, in case you want to SuperReturn from somewhere deeper.
DECLSPEC_NOINLINE void SuperReturn(
@BlackOfWorld
BlackOfWorld / AllTheLinks.md
Created August 27, 2023 11:12 — forked from SoSeDiK/AllTheLinks.md
Contains some links of different Minecraft server Software :o
@BlackOfWorld
BlackOfWorld / repo-reset.md
Created February 19, 2019 19:41 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A