Skip to content

Instantly share code, notes, and snippets.

View JovannMC's full-sized avatar
💭
working on random stuff

Maya JovannMC

💭
working on random stuff
View GitHub Profile
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}
@aamiaa
aamiaa / RevertNewLayout.md
Last active August 7, 2025 13:15
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
@meowabyte
meowabyte / messagelatency-manipulation.js
Last active July 30, 2025 14:49
A fairly simple snippet for MessageLatency plugin manipulation for Vencord. It doesn't use any Vencord-depending variables so you can use Vanilla Discord to troll others
/** _changeLatency(days) to change your latency */
window._changeLatency = await (async () => {
const NONCE_SHIFT = 14200704e5,
SHOULD_MANIPULATE_SYMBOL = Symbol("should manipulate?"),
ORIGINAL_NONCE_SYMBOL = Symbol("original nonce")
const fromNonce = val => Math.floor(Number(val) / 4194304) + NONCE_SHIFT
const toNonce = val => {
let t = val - NONCE_SHIFT;
return t <= 0 ? "0" : (BigInt(t) << 22n).toString()
@lunginspector
lunginspector / iosdevicecolor.md
Last active December 9, 2024 14:45
How to change trick an iOS device into thinking it has a different enclosure color

How to change trick an iOS device into thinking it has a different enclosure color

Notice: I am not responsible if you mess something up. Do this at your own risk.

This is NOT a tutorial. This just shows what needs to be edited in MobileGestalt for this to work.

The Keys

  • DeviceEnclosureColor - JhEU414EIaDvAz8ki5DSqw
  • DeviceColor - mumHZHMLEfAuTkkd28fHlQ

Important Notice: These keys are already in MobileGestalt, so you do not need to add them.