Skip to content

Instantly share code, notes, and snippets.

View laura240406's full-sized avatar
🐱

Laura Kirsch laura240406

🐱
  • Germany
  • 08:26 (UTC +01:00)
View GitHub Profile
@laura240406
laura240406 / totp.c
Last active November 24, 2025 20:13
Really simple dependency-free TOTP cli tool. Reads base32 secret from $HOME/.config/totp and prints the TOTP to stdout.
#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <time.h>
#include <unistd.h>
/*
## File Descriptor INT_MAX Overflow
----
- Info:
Tweet: https://x.com/spendergrsec/status/1958264076162998771
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=04a2c4b4511d186b0fce685da21085a5d4acd370
@laura240406
laura240406 / gentable.py
Last active October 23, 2025 16:15
Make truth table in Markdown/LaTeX
term = input("Term: ")
mode = None
while mode not in ("md", "latex", "sat"):
mode = input("Mode (md/latex/sat): ")
def name(t):
n = ""
while t[0] not in " )":
@laura240406
laura240406 / center_stl.py
Created October 4, 2025 11:12
Center a binary STL file so that the average coordinate is (0, 0, 0)
# public domain
import struct, sys
if len(sys.argv) != 3:
print("[!] Usage:", sys.argv[0], "<in>", "<out>")
exit(1)
ax, ay, az = 0, 0, 0
with open(sys.argv[1], "rb") as fd:
@cablej
cablej / dmca.md
Last active July 9, 2025 03:17
Cluely DMCA
@rxri
rxri / spicetify_v8_explanation.md
Last active October 7, 2025 21:14
Technical explanation of V8 Snapshot in Spotify

Hi fellow reader,

I'm ririxi, core maintainer of spicetify. Some people asked me to do a technical explanation of what spotify shipped with macOS Intel versions. This would be my first time writing a post like this, so I apologize for any inscriptions.

What is V8 context snapshot?

Spotify under the hood uses CEF (Chromium Embedded Framework) which is a framework around chromium, essentially electron but for C++. Chromium uses a V8 which is a Javascript engine created by Google. V8 can generate serialized representation (bytecode) of the V8 engine's heap. It contains pre-initialized JavaScript objects and functions.

@laura240406
laura240406 / cof-patch.sh
Last active August 31, 2025 01:51
Script to patch Cry of Fear so the light works on Linux
#!/bin/sh
if [ ! -f opengl32.dll ]; then
echo "Cannot find opengl32.dll"
exit 1;
fi
echo H4sICLVq+10AA2NvZi1vcGVuZ2wzMi50YXIA7Zh9TFV1GMcfkEKdTWq+3IrqWtDIwMHlgvYiYYFR3ZJQy1wmBBcvdYXrvbcCh5WLGaG9uN6L7Fas0WYJckFk1ZjCsrJGRRs5bcjUSBnZRs5Vi77Pc/FXnl//tFzW/H3n55zr8cPzPedwdsBfcUVpSoXPXb7Cm+6Y5SsKFnvolCcVycxM5X3a7IyT9ogjw+lwUFp6xuzMTKfDmZpBqWlpjnQn2VNP/anoeSAQLPLb7f9G1X8xaY7iNMfEa+1EnvHNFLf+nJGOqLjbR6fG+CjurbhtUXGPzeUtPRCb3vn9jxOgTWFtKmsFY9qG7azxNqJ9wpod2hts5Y9Z+WLlK6uBrWSts1K0SqWtYW2O1mkXza60O1jLsXaGxAopK5WtfK0zSbQkpU1g7W6t09dK0Hgb0QbGQ/NaOyvFqlTW+2xVa52FohUq7XnWNmid1e18aryNaOWshaydJTKsRA3LY6tJ62yQYQ1q2AzWurTORW2s8Tai/RwLrdfaGRQrqKxetg5onT1yb3vUvX2XtRGtc7dou5W2jrWYrZbOQekcVJ2FbMVttXZmi5attKtYi99q7Twg2gGlncdakrXTJZZLWUNnw3Jqnb2i9Sqtm7VsrTNZtGSlbWLNZe1sF6tdWZVsLdE6qYM13ka021kr0Tr7ZVq/mjaTNZ+1M0GsBGXFsFWtdfaJ1qe0fWdBq9U6naI5ldbG2nPWzpBYIWU9w1ZI68yR68xR11nG2mats0mmNalp17PWbu0ckSdtRD1p8Wx1aZ2NMqxRDfspBlqP1pktp5atTu1z1vZaOxtkWIMa1sjWoNaZJ8Py1LC1rI1onfUyrV5NW8oatVg6k2VYshrmZGtSi7XTJu94m3rHn8OarcXaWSPTatS0Q+OgJVg7u

Updates (September 1st, 2024)

Now that I finally have a good handle on things now I wanted to give a little update as I work my way back.

  • I'm essentially working three jobs right now.
  • I've left my former "main" job. Depending on how this works out I may have free time again as I'll be work from home, kinda... I'll be able to have a console/monitor with me at "work" at the least. As time goes on my free time will go up especially after next summer. The only issue is it's a HUGE, ~50%, pay decease which effects how bad the next two points hit...
  • I may have ~$300k in taxes to pay to try and keep my late family's property in the family. That's not "tax on $300k worth of assets" but "owing $300k"
  • My computer that's been on it's last leg for a long time. Now it is randomly crashing and it appears to be a hardware issue. It's an all in one device, a Surface Pro, that's all soldered together so I can't just start swapping parts. Because of the unknown bill coming up I can't spend any money on anything n
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 3, 2025 06:41
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter: