Skip to content

Instantly share code, notes, and snippets.

View learosema's full-sized avatar
👋
Hello World!

Lea Rosema learosema

👋
Hello World!
View GitHub Profile
@learosema
learosema / README.md
Last active October 14, 2023 10:51
leas mastodon recovery notes

Running db backups and or tootctl commands from chroot environment

Wow my server is completely fucked up right now. All I can do is try to create a backup from the most recent data dir... something with dbus daemon prevents from logging me in and it makes everything slow.

# Create mount bindings
mount --bind /dev /repair/dev
mount --bind /dev/shm /repair/dev/shm
mount --bind /dev/pts /repair/dev/pts
@learosema
learosema / PATTERN.ASM
Last active August 27, 2023 16:02
Pseudorandom black and white pattern in DOS
org 100h
section .text
entry: mov ax,0x13
int 0x10
mov di, 0xA000
mov es, di
xor di, di
mov cx, 0xfa00
@learosema
learosema / userscript.js
Last active April 9, 2023 10:04
UserScript: Mark as Grifter site
// ==UserScript==
// @name Mark grifter websites
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Mark Grifter Websitess as grifter websites
// @author Lea Rosema
// @match https://technewsidea.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=technewsidea.com
// @grant none
// ==/UserScript==
@learosema
learosema / jail.local
Last active March 21, 2023 15:56
jail.local
[DEFAULT]
destemail = email@example.org
sendername = Fail2Ban
[sshd]
mode = extra
enabled = true
port = 22
maxretry = 1
bantime=6000
@learosema
learosema / prng.js
Last active May 16, 2023 15:38
eleventy-prng.js
// store this file in the _data directory
let randomSeed = 1234567;
module.exports = {
init(seed) { randomSeed = seed; },
random() {
randomSeed = randomSeed * 16807 % 2147483647;
return randomSeed / 2147483647;
}
};
@learosema
learosema / backgrounds.json
Last active October 9, 2022 17:07
Generative backgrounds for eleventy
[
{
"name": "purple-pink",
"seed": 12,
"color1": "rebeccapurple",
"color2": "deeppink"
},
{
"name": "grayish",
"seed": 432,
uses crt,playcd;
var cd:record
danz,drive:word;
mintrk,maxtrk,anztrk:byte;
traks:array[0..63] of longint;
len:array[0..63] of longint;
ttyp:array[0..63] of byte;
end;
i:integer; m,s:byte;
@learosema
learosema / README.md
Created May 22, 2020 21:27
LeaSans8bitMono

font

@learosema
learosema / README.md
Last active April 8, 2020 19:58
Node Express Guestbook API

A little Guestbook API in node express :)

This is a little guestbook API. It uses a JSON file as a database. And for laziness, I used synchronous writes. Yes, this is bad practice.

npm i express body-parser
node server
@learosema
learosema / README.md
Last active March 22, 2022 13:32
16 bit DOS assembly, circular rainbow pattern

Circular rainbow pattern

Made for DOS/DOSBox. Compile via NASM: nasm -f bin -o anim.com anim.asm

License

FRUIT TEA PUBLIC LICENSE (FTPL)

@lea_rosema made this. You can do whatever you want with it. If we meet some day, and you think this stuff is worth it, you can buy me a fruit tea in return.