Skip to content

Instantly share code, notes, and snippets.

View CompeyDev's full-sized avatar

Erica Marigold CompeyDev

View GitHub Profile
@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 December 29, 2024 06:27
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"
@CompeyDev
CompeyDev / .bashrc
Created August 12, 2023 16:44 — forked from 4x8Matrix/.bashrc
My saved BASH confliguration
#!/bin/bash
[[ $- != *i* ]] && return
# EXPORTS
export PATH="$PATH:~/.foreman/bin"
export PATH="$PATH:~/.cargo/bin"
export PATH="$PATH:~/.luaU/bin"
export HISTFILESIZE=10000
export HISTSIZE=500
@CompeyDev
CompeyDev / README.md
Last active July 30, 2023 06:29
My android 13 setup.

July 2023 Android Setup

[*] Launcher: Smart Launcher 6

  • For the layout, I'm using the "classic theme" and replacing all the homescreen icons and widgets to only include a spotify classic and battery widget. I'm also using JetBrains Mono as my font everywhere.