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 / 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
--!native
--!optimize 2
type vector = Vector3
-- stylua: ignore
local HEX_TO_BINARY = {
["0"] = "0000", ["1"] = "0001", ["2"] = "0010", ["3"] = "0011",
["4"] = "0100", ["5"] = "0101", ["6"] = "0110", ["7"] = "0111",
["8"] = "1000", ["9"] = "1001", ["a"] = "1010", ["b"] = "1011",
["c"] = "1100", ["d"] = "1101", ["e"] = "1110", ["f"] = "1111",
@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
@arvati
arvati / vault.md
Last active February 28, 2025 15:26
Create an encrypted file vault on Linux using LUKS

Install Luks

sudo apt install cryptsetup

Create an empty file, size 512 Mb

cd ~/
dd if=/dev/urandom of=vaultfile.img bs=1M count=512

Create Luks Volume

@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 / settings.json
Last active June 8, 2023 11:18
A "one-like" and dimmer version of the Purple Horizon VSCode theme.
"[Purple Horizon]": {
"terminalCursor.foreground": "#1f1929",
"editorLineNumber.activeForeground": "#1f1929",
"sideBar.border": "#1f1929",
"focusBorder": "#1f1929",
"sideBarSectionHeader.border": "#1f1929",
"editorGroup.border": "#1f1929",
"panel.border": "#1f1929",
"tab.border": "#1f1929",
"tab.activeBackground": "#1f1929",
@CompeyDev
CompeyDev / kitty.conf
Created May 23, 2023 16:10
Minimal kitty configuration featuring catpuccin.
# vim:fileencoding=utf-8:foldmethod=marker
include ./theme.conf
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
@CompeyDev
CompeyDev / crc32.lua
Last active December 26, 2024 06:22
An example CRC32 implementation in pure luau.
-- This is a dysfunctional PoC for a luau implementation of crc32.
local POLY = 0x04C11DB7
local crc32 = {}
local crc32_t = {}
setmetatable(crc32_t, {
__call = function (crc32_t, ...): {[number]: number}
local c = 1
@CompeyDev
CompeyDev / README.md
Last active November 23, 2022 09:24
yatsg - Yet Another TypeScript Style Guide

yatsg

Yet another TypeScript Style Guide

yatsg is a personal style guide that I usually follow when writing TypeScript code. This generally borrows heavily from the standard.js style guide, so it may be worth checking that out first.

Table of Contents

  • Naming Convention
  • Specific Data Types