Skip to content

Instantly share code, notes, and snippets.

View norinorin's full-sized avatar
💭
turning coffee into questionable commits

norinorin

💭
turning coffee into questionable commits
  • Indonesia
  • 16:20 (UTC +07:00)
View GitHub Profile
@norinorin
norinorin / 01_tricat.py
Last active October 26, 2025 15:53
FFmpeg trim concat filters generator
"""
MIT License
Copyright (c) 2024 norinorin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@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
@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 / monkey_patch.py
Last active November 7, 2025 16:09
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.