Skip to content

Instantly share code, notes, and snippets.

View hironichu's full-sized avatar
🎯
Focusing

Nassim Z hironichu

🎯
Focusing
View GitHub Profile
@hironichu
hironichu / DOC.md
Created May 30, 2026 19:22
Discord Experiments 2026 (with package update detection)

Well you can thank Claude for making this works.

This code should automatically works for later update as it goes through the runtime objects to find the new id for the store, this is quite a bruteforce way of doing it, as of May 30th you can use a simpler version with current ID

Version without lookup (raw store id 287809)

{
  var wpR = [];
  webpackChunkdiscord_app.push([[Symbol()], {}, function(r) { wpR.push(r); }]);
@hironichu
hironichu / change_binary_subsystem.ts
Created November 28, 2021 20:33
Change binary subsystem
async function readN(r: Deno.Reader, n: number): Promise<Uint8Array | null> {
const buf = new Uint8Array(n);
let nRead = 0;
// a null value of r.read() will nullish coalesce into NaN and
// polute nRead, causing (nRead < n) to be false and the loop to exit
while (nRead < n) {
nRead += await r.read(buf.subarray(nRead)) ?? NaN;
}
return isNaN(nRead) ? null : buf;
}
@hironichu
hironichu / gist:d8905b1fb55f7cf51945fe4261061422
Created May 22, 2020 16:43
gsl1686-teclast_x98plus2.fw
https://github.com/onitake/gsl-firmware/raw/master/firmware/linux/silead/gsl1686-teclast_x98plus2.fw