Skip to content

Instantly share code, notes, and snippets.

View CompeyDev's full-sized avatar

Erica Marigold CompeyDev

View GitHub Profile
@CompeyDev
CompeyDev / settings.jsonc
Last active April 23, 2026 11:33
Monochrome-ish purple accented VSCode theme
// Somewhat inspired by: https://open-vsx.org/vscode/item?itemName=lulu-rijpkema.cool-cowboy-theme
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#1a1720",
"activityBar.activeBorder": "#9b8fb5",
"activityBar.background": "#1a1720",
"activityBar.border": "#211d2a",
"activityBar.foreground": "#b8a8cc",
"activityBar.inactiveForeground": "#ccbbee50",
@CompeyDev
CompeyDev / graph.png
Last active March 25, 2026 06:55
Plotting a graph of religious terrorism based on the Global Terrorism Database
graph.png
@CompeyDev
CompeyDev / uptime-kuma-catppuccin.css
Created October 31, 2025 11:30
Catppuccin theming for Uptime Kuma (please tell me if I missed something!)
.bg-primary {
background-color: #8839ef !important;
}
.hp-bar-big .beat {
background-color: #8839ef !important;
}
.hp-bar-big .beat.down {
background-color: #d20f39 !important;
}
.hp-bar-big .beat.maintenance {
@CompeyDev
CompeyDev / raii_tempfile.luau
Last active September 9, 2025 14:50
RAII-based fault-tolerant(?) tempfile module - ABSOLUTELY UNTESTED, WRITTEN IN A DISCORD CHATBOX, (doesn't work no `__gc` in Luau)
--> RAII-based fault-tolerant(?) tempfile module
local fs = require("@lune/fs")
local CHARSET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
local function randId(len: number?, rng: () -> number)
local bytes = {}
for _ = 1, len do
local byte = math.random(1, #CHARSET)
table.insert(bytes, string.sub(CHARSET, byte, byte))
@CompeyDev
CompeyDev / exec.luau
Last active February 22, 2026 19:01
Builder pattern class to spawn, manage and kill child processes.
--> Builder pattern class to spawn, manage and kill child processes
local process = require("@lune/process")
local task = require("@lune/task")
local option = require("./option")
local Option = option.Option
type Option<T> = option.Option<T>
local CommandBuilder = {}
@CompeyDev
CompeyDev / detect_executable.luau
Created October 31, 2024 12:50
A simple Lune script to detect the architecture and OS of a binary.
local process = require("@lune/process")
type Arch = process.Arch | "arm" | "x86"
return function(binaryContents: buffer): {
os: process.OS?,
arch: Arch?,
}?
-- Windows PE
do
@CompeyDev
CompeyDev / CLIFlags.txt
Last active May 4, 2025 15:09 — forked from chadhyatt/CLIFlags.txt
All RobloxStudioBeta.exe CLI Flags (undocumented included)
-browserTrackerId
-protocolString
-instanceId
-task
-APIV2
-placeId
-port
-hidpi
-universeId
-pluginId
@CompeyDev
CompeyDev / brutus.luau
Created June 10, 2024 12:03
Quick lune script to brute force case cipher encoded texts
--> Brute forces some caesar cipher encoded text
local process = require("@lune/process")
local stdio = require("@lune/stdio")
local net = require("@lune/net")
local CHARS = ("abcdefghijklmnopqrstuvwxyz"):split("")
print(`brutus.luau: {process.os}-{process.arch}`)
local ciphertext = process.args[1] or error("usage: ./brutus.luau [CIPHERTEXT]")
@CompeyDev
CompeyDev / curve25519.lua
Last active March 30, 2024 06:11
A curve25519 implementation in lua.
-- This library is currently dysfunctional since I cannot find a BigNum implementation
-- which suits my usecases.
--[[
A lua(u) implementation of the curve25519 (Diffie-Hellman key agreement scheme)
elliptic curve cryptography algorithm.
@author Erica Marigold
@reference https://www.cl.cam.ac.uk/teaching/2122/Crypto/curve25519.pdf
]]
@CompeyDev
CompeyDev / lune_for_android.md
Created September 30, 2023 17:34
A guide to compiling lune for Android (to be ran with termux).

Note

This guide assumes that you're building for aarch64-linux-android only, but a similar approach should apply to other CPU architectures too.

To build and run lune for android, you need to do the following:

  • Set up your cargo config:
[target.aarch64-linux-android]
ar = "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar"