Skip to content

Instantly share code, notes, and snippets.

View 0XDE57's full-sized avatar
🧙‍♂️
RISK-V when?

arbitrary hexcode 0XDE57

🧙‍♂️
RISK-V when?
View GitHub Profile
@DDoop
DDoop / imgcrypt.py
Last active January 5, 2025 18:42
Hides a signature at a random offset inside the RGB data of an image file. Relies on CRC32. Written & tested on Linux
import subprocess
from PIL import Image
from random import randrange
class ByteStreamReader:
chunk_length = 32
hash_length = 8
def __init__(self, bytearr):
@FreyaHolmer
FreyaHolmer / GpuPrinter.cginc
Last active January 20, 2025 19:26
A unity shader .cginc to draw numbers in the fragment shader - see the first comment below for example usage!
///////////////////////////////////////////////////////////////////////////////
// ABOUT: A unity Shader .cginc to draw numbers in the fragment shader
// AUTHOR: Freya Holmér
// LICENSE: Use for whatever, commercial or otherwise!
// Don't hold me liable for issues though
// But pls credit me if it works super well <3
// LIMITATIONS: There's some precision loss beyond 3 decimal places
// CONTRIBUTORS: yes please! if you know a more precise way to get
// decimal digits then pls lemme know!
// GetDecimalSymbolAt() could use some more love/precision
import com.badlogic.gdx.scenes.scene2d.Actor;
import de.golfgl.gdx.controllers.ControllerMenuStage;
import de.golfgl.gdx.controllers.IControllerScrollable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ControllerScrollableHelper implements IControllerScrollable {
private final ControllerMenuStage stage;
@T3sT3ro
T3sT3ro / renderdoc-how-to.md
Last active January 20, 2025 22:31
Guide: launching renderdoc with java gradle project on minecraft "Create" mod example

So you want to launch RenderDoc with Java, huh?

Here is a good resource to check out first

First of all, check what command is run when you in fact launch your app. For me (Create minecraft mod) this command was executed when I run runClient configuration (line breaks, tabs and backslashes added for readability):

Step 1. command for running minecraft with mods - generated by gradle

/home/tooster/.sdkman/candidates/java/14.0.1-open/bin/java
@pawlos
pawlos / xrefs.py
Last active November 21, 2021 05:54
Ghidra's script to automate adding of XREFs for lost_in_your_eyes from DiceCTF
#script for https://www.youtube.com/watch?v=FvH7b_qLmbU
import struct
from ghidra.program.model.symbol import *
xrefs = currentProgram.getReferenceManager()
startAddr = currentAddress
currAddr = currentAddress
while True:
@crykn
crykn / switch_to_lwjgl3.md
Last active September 2, 2024 16:50
How to switch to libGDX's LWJGL3 backend

How to switch your libGDX project to LWJGL 3


--- This guide is now available on libgdx.com. Check it out here. If you have any questions, join us on Discord! ---


  1. To switch to libGDX's LWJGL 3 backend, open your root build.gradle file and replace the LWJGL backend dependency:
@haram
haram / be_fn.hpp
Last active May 14, 2024 15:37
Replicate BattlEye initialization to dump data out of it
#pragma once
#include <stdint.h>
#include <stdio.h>
namespace be
{
void print_message( const char* msg )
{
printf( "[BATTLEYE] %s\n", msg );
}
@captainhook
captainhook / SpotifyWhitelist
Last active December 29, 2023 17:32
Spotify whitelist, Pi-hole compatible. Original source: https://github.com/x0uid/SpotifyAdBlock
# Spotify's Anti-Adveritsing blocking servers, tricking services to stop music services (DONT BLOCK THESE!):
gcdn.2mdn.net
r9---sn-n4v7kn76.c.2mdn.net
gew1-accesspoint-b-zzfg.ap.spotify.com
ns1.p23.dynect.net
ns3.p23.dynect.net
ns4.p23.dynect.net
dns1.p07.nsone.net
dns2.p07.nsone.net
dns3.p07.nsone.net
package org.veiset.tsar.world
import com.badlogic.gdx.math.Vector2
import org.veiset.tsar.engine2.utils.component1
import org.veiset.tsar.engine2.utils.component2
import org.veiset.tsar.engine2.utils.x
import org.veiset.tsar.world.icon.WorldIcon
import kotlin.math.absoluteValue
import kotlin.math.cos
import kotlin.math.pow
@johnhw
johnhw / umap_sparse.py
Last active December 5, 2024 20:30
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random