Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Hello World!

Lea Rosema learosema

👋
Hello World!
View GitHub Profile
@learosema
learosema / userscript.js
Last active April 9, 2023 10:04
UserScript: Mark as Grifter site
View userscript.js
// ==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
View 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
View 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
View backgrounds.json
[
{
"name": "purple-pink",
"seed": 12,
"color1": "rebeccapurple",
"color2": "deeppink"
},
{
"name": "grayish",
"seed": 432,
View cdplayer.pas
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
@learosema
learosema / README.md
Last active April 8, 2020 19:58
Node Express Guestbook API
View README.md

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
View README.md

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.

@learosema
learosema / README.md
Last active November 30, 2016 16:21
16 bit DOS assembly animation
View README.md

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

License

COFFEE PUBLIC LICENSE (CPL)

@terabaud 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 coffee in return.

@learosema
learosema / README.md
Last active April 13, 2021 16:43
Simple animation using 16 bit dos assembly and mode 0x13 (320x200 with 256 colors)
View README.md

Instructions

  • Download a DOS emulator like DOSBox
  • Get NASM
  • Compile with nasm -f bin -o anim.com anim.asm
  • Run anim.com and enjoy!

License

FRUIT TEA PUBLIC LICENSE (FTPL)