Skip to content

Instantly share code, notes, and snippets.

View lleyton's full-sized avatar
🐱
giving a cat headpats

lea lleyton

🐱
giving a cat headpats
View GitHub Profile
@lleyton
lleyton / main.ts
Created October 11, 2024 18:33
Deno script for finding Mastodon accounts from an account's followers list.
import { Rettiwt } from "npm:rettiwt-api";
const fediHandle = /@[\w.-]+@[\w.-]+/;
const apiKey = Deno.env.get("TWITTER_API_KEY");
const username = Deno.args.at(-1);
if (username === undefined)
throw new Error("You must pass your Twitter username as an argument.");
@lleyton
lleyton / translation.md
Last active February 16, 2025 12:04
(ENG) Open Source Business Challenges and Reality, Rui Ueyama

Open Source Business Challenges and Reality

Original Japanese note here.

Original Author: Rui Ueyama (creator of the mold linker)

Translated by @windowsboy111

Minimally edited by @lleyton

@lleyton
lleyton / README.md
Last active July 18, 2022 23:12
Powercord Package Manager (PPM)

A simple and bodgey package manager for Powercord

Installation

Download the ppm.js file, and add it your your PATH. (Make sure to chmod +x it.)

You will need to set the POWERCORD_PATH enviroment variable to your Powercord installation, the root git repository.

(Automated installer coming soon:tm:)

@lleyton
lleyton / index.ts
Created June 21, 2022 00:34
Naïve method of "fixing" a foreground color to contrast with a background color
type RGB8bitColor = [number, number, number];
// Adapted from https://gist.github.com/jfsiii/5641126
// and from http://www.w3.org/TR/WCAG20/#relativeluminancedef
const relativeLuminanceW3C = (color: RGB8bitColor) => {
const RsRGB = color[0] / 255;
const GsRGB = color[1] / 255;
const BsRGB = color[2] / 255;
const R =
@lleyton
lleyton / identifier.txt
Created September 12, 2021 04:30
Identifier Proof
SEA{"m":"I claim this account on identifier. For more info see: https://identifier.app/lleyton#github","s":"sZvsJ3+IfcPuvAZO64WVh8BKFfcRWfggApYOrKbr8wJOM9f8worTVgUdj9LCh8M3ia4p/kp4JVKmH6JLpZCDCg=="}
@lleyton
lleyton / identifier.txt
Created September 12, 2021 02:41
Identifier Proof
SEA{"m":"I claim this account on identifier. For more info see: https://identifier.app/lleyton#github","s":"AjuSI4QH0rtaCXTuoiHEsaAAWcBDoSHAzQxH0e3fkp8+65ImBsBqoKKdsOWOyUFE+24fJMFTDrCltQyR9FFy+g=="}
#Minecraft server properties
server-port=25565
server-ip=
max-players=5
view-distance=2
@lleyton
lleyton / quickstart.md
Last active July 18, 2021 02:51
innsight Documentation

Quickstart

innsight is a server monitoring platform made by Innatical to help simplify your system administration needs. With log collection, server analytics, and remote actions built into one platform, we make your job easy.

Getting Started

Let's get started by creating an innsight account. You can create an account on our main site.

Now, let's install innsight on your first server! Copy the below command and paste it into your server's terminal.

@lleyton
lleyton / config.hcl
Last active July 18, 2021 02:37
innsight
logs = true
metrics = true
files = [
"/var/log/syslog"
]
token = ""
{
"name": "Octii",
"dark": {
"colors": {
"primary": "linear-gradient(224deg, #75C8FF 0%, #007FFF 100%)",
"secondary": "linear-gradient(224deg, #A3A3A3 0%, #636363 100%)",
"success": "#8f8f8f",
"info": "#8f8f8f",
"danger": "linear-gradient(224deg, #FC9D9D 0%, #F86464 100%)",
"warning": "linear-gradient(224deg, #FFD575 0%, #FF7200 100%)",