Skip to content

Instantly share code, notes, and snippets.

View FroggerHH's full-sized avatar
🖥️
Working

Vyacheslav FroggerHH

🖥️
Working
View GitHub Profile
@FroggerHH
FroggerHH / FindShaderReferences.cs
Created December 4, 2025 18:26
Find Valheim shaders references
using System.Text;
using HarmonyLib;
using UnityEngine;
[HarmonyPatch, HarmonyWrapSafe]
file static class FindShaderReferences
{
private const string TARGET_SHADER_NAME = "Standard";
[HarmonyPrefix]
@FroggerHH
FroggerHH / i2cpp_ghidra.md
Created July 4, 2025 18:02 — forked from BadMagic100/i2cpp_ghidra.md
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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 2, 2026 18:59
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@aamiaa
aamiaa / RevertNewLayout.md
Last active December 30, 2025 20:48
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@eylenburg
eylenburg / msoffice_in_linux.md
Last active January 1, 2026 07:25
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active December 31, 2025 04:09
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
@gitclone-url
gitclone-url / Boot image extraction guide.md
Last active December 30, 2025 00:20
Guide on how to extract a boot image from any Android phone without needing to root using Magisk, without stock firmware or a custom recovery
@ethanedits
ethanedits / Render.cs
Created July 13, 2021 06:36
Render Class for GUI methods in Unity
using System;
using UnityEngine;
public class Render : MonoBehaviour
{
public static GUIStyle StringStyle { get; set; } = new GUIStyle(GUI.skin.label);
public static Color Color
{
get { return GUI.color; }
@RickStrahl
RickStrahl / CompilingCSharpCode.cs
Last active June 7, 2025 09:26
A few different approaches to dynamically execute C# code dynamically at runtime from a string of code.
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Mono.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
@fnky
fnky / ANSI.md
Last active January 1, 2026 16:59
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27