Skip to content

Instantly share code, notes, and snippets.

View CompeyDev's full-sized avatar

Erica Marigold CompeyDev

View GitHub Profile
@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 regginator/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.
@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.