Skip to content

Instantly share code, notes, and snippets.

View norinorin's full-sized avatar

norinorin

  • Indonesia
  • 05:26 (UTC +07:00)
View GitHub Profile
@norinorin
norinorin / monkey_patch.py
Last active November 7, 2023 20:53
discord.py mobile status monkey patch
"""
USE THIS AT YOUR OWN RISK. THIS IS UNDOCUMENTED, I WILL NOT BE RESPONSIBLE FOR WHAT HAPPENS WITH YOUR BOT(S).
You can import this into your main file since these are top-level statements or just copy-paste the whole thing (with credits).
What this does is patch the identify payload, the `$browser` field to be exact.
Since it's hardcoded in discord.py, we monkey-patch it.
You can change it to either `Discord Android` or `Discord iOS`—I'm not aware of any other options,
but those 2 seem to trigger the mobile indicator.
@norinorin
norinorin / index.html.diff
Last active April 21, 2023 00:49
Weylus custom active area
diff --git a/index.html.bak b/index.html
index 2befa8f..469037a 100644
--- a/index.html.bak
+++ b/index.html
@@ -57,6 +57,14 @@
</label>
<label>Min pressure to generate: <br><input type="range" id="min_pressure" min="0" max="1" step="0.01"
value="0" /></label>
+ <label>Horizontal area scaling: <br><input type="range" id="scale_horizontal" min="0.3" max="1"
+ step="0.01" value="1" /><output>100%</output></label>
@norinorin
norinorin / README.MD
Last active February 10, 2024 07:53
Minecraft Bedrock Server Backup Utils
  1. i hate cgnat
  2. i hate cgnat
  3. frp cool