Skip to content

Instantly share code, notes, and snippets.

@Mothblocks
Mothblocks / main.cpp
Created August 20, 2023 01:38
Library to get sleeping procs on Linux
g++ -nostdlib -m32 -shared -fPIC -o libbyond_sleeping_procs.so main.cpp
@Mothblocks
Mothblocks / dm_full_file_patch.py
Last active July 24, 2024 22:04
Given a byondcore.dll, will include full filenames in compilation. Will use absolute path, but you can provide a number of bytes to offset by for the path if you want to remove your user information.
# dm_full_file_patch.py <byondcore.dll> [bytes to offset strings by]
# By default, this will create absolute paths, which work perfectly fine in Tracy no matter where it is.
# However, if you want to trim file paths to only what is necessary, you can specify a number of bytes to offset.
# For example, if your tgstation is inside C:/Users/Mothblocks/tgstation/, you will want to cut it by 30 (the length of that text).
# This is useful if you want to send screenshots or upload the Tracy profile without giving away potential PII like your username.
import shutil
import sys
pattern = [
@Mothblocks
Mothblocks / Pipfile
Last active September 20, 2021 04:43
Automatically get trial admin threads
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
beautifulsoup4 = "*"