Skip to content

Instantly share code, notes, and snippets.

View ffernandoalves's full-sized avatar
:shipit:
!

Fernando Alves ffernandoalves

:shipit:
!
View GitHub Profile
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active July 4, 2025 18:02
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
@mathix420
mathix420 / medium.user.js
Last active July 4, 2025 05:20
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@sjhalayka
sjhalayka / main.cpp
Created August 1, 2020 04:53
Bare bones GLFW + Dear Imgui
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "dear imgui/imgui.h"
#include "dear imgui/imgui_impl_glfw.h"
#include "dear imgui/imgui_impl_opengl3.h"
// Automatically link in the GLFW and GLEW libraries if compiling on MSVC++
#ifdef _MSC_VER
#pragma comment(lib, "glew32")
@orbingol
orbingol / dynamic_attributes.py
Last active February 22, 2025 17:21
Creating dynamic attributes in Python via overriding "__getattr__" and "__setattr__" magic methods
# Illustrates creating dynamic attributes in Python
#
# For implementation details of the dynamic attributes, please see the following methods:
# - GPSPosition.__getattr__
# - GPSPosition.__setattr__
#
class GPSPosition(object):
__slots__ = ('_coords', '_attribs', '_iter_index')
@Zibri
Zibri / gitclean.sh
Last active December 8, 2024 05:38
Bash script to remove all revisions from github or gist repository.
#!/bin/bash
#
# By Zibri (2019)
#
# Usage: gitclean username password giturl
#
gitclean ()
{
odir=$PWD;
if [ "$#" -ne 3 ]; then
#include <iostream>
#include <windows.h>
#include <cstdio>
using namespace std;
typedef int tipochave;
typedef struct aux {
tipochave chave;
@Abacn
Abacn / qhulltest.cpp
Last active October 15, 2024 20:15
Calling qhull library in C++
/* Compiling command:
g++ -o Qhullex Qhullex.cpp -lqhullstatic_r -lqhullcpp
Note:
(1) this is the minimum example (user_eg3) in qhull package, also mentioned in http://www.qhull.org/html/qh-code.htm#cpp .
However, the version on the website (Dated 03/19/2019) is inconsistent with the source code and it does not pass the compiler
(2) libqhullstatic_r is the correct library to use.
* Linking to libqhull results in runtime error
"QH6248 qh_lib_check: Incorrect qhull library called. Caller uses reentrant Qhull while library is non-reentrant";
* Linking to libqhull_r results in runtime error
@rmukh
rmukh / links.md
Last active June 11, 2025 11:31
Couple of useful 3D convex hull links
from uuid import uuid4
from aiogram.types import InlineQueryResultGame
from backend.settings import BOT_TOKEN
def get_ngrok_https():
import json
import os
@Yousha
Yousha / .gitattributes
Last active May 16, 2024 17:23
.gitattributes for C/C++ developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf