Skip to content

Instantly share code, notes, and snippets.

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

Fernando Alves ffernandoalves

:shipit:
!
View GitHub Profile
@rmukh
rmukh / links.md
Last active September 1, 2025 13:08
Couple of useful 3D convex hull links
@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
#include <iostream>
#include <windows.h>
#include <cstdio>
using namespace std;
typedef int tipochave;
typedef struct aux {
tipochave chave;
@Zibri
Zibri / gitclean.sh
Last active July 17, 2025 00:30
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
@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')
@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")
@mathix420
mathix420 / medium.user.js
Last active September 25, 2025 05:51
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
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active September 24, 2025 08:39
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