Skip to content

Instantly share code, notes, and snippets.

View syrenaaa's full-sized avatar

syrena syrenaaa

View GitHub Profile
@syrenaaa
syrenaaa / .env
Last active July 2, 2022 20:02
mod updater rewrite in bash
# example config
MINECRAFT_VERSION="1.18.1"
FABRIC_MODS=(
# add the mod id / slug from modrinth here
)
FORGE_MODS=(
# add the mod id / slug from modrinth here
)
QUILT_MODS=(
@syrenaaa
syrenaaa / index.tsx
Last active November 7, 2022 21:07
json to css vars
import { useRef, useEffect, useState } from 'preact/hooks';
export function App() {
const [keys, setKeys] = useState<string[]>([]);
const [obj, setObj] = useState<any>();
return (
<>
<textarea
onInput={(ev) => {
@syrenaaa
syrenaaa / readme.md
Last active November 6, 2023 00:14
a tl;dr for hpke

HPKE Flow

sequenceDiagram
  actor Initiator
  actor Recipient
  participant KEM
  participant KDF
  participant AEAD
body {
min-height: fit-content;
background-color: #f7f2ff;
color: #392142;
font-family: 'Gambarino', serif;
&>.page {
min-height: 100dvh;
height: 100%;
padding: 3rem;
@syrenaaa
syrenaaa / .index.md
Last active March 27, 2025 20:38
code advent 2024 solutions in uiua

here are my solutions (partially) in uiua for advent of code 2024.

there is an explained version with filename ending in _long and a minimized version ending in _short for each part in each day.

i might explain more for each one on my website here so yea :3

@syrenaaa
syrenaaa / bench.ts
Created April 25, 2025 14:12
benchmarking different encoders/decoders
// curl https://microsoftedge.github.io/Demos/json-dummy-data/1MB-min.json > test.json
import { decode as decodeMsgpack, encode as encodeMsgpack } from "npm:@msgpack/msgpack";
import { decode as decodeCbor, encode as encodeCbor } from "npm:cbor-x";
const encoder = new TextEncoder(),
decoder = new TextDecoder(),
data = JSON.parse(Deno.readTextFileSync("test.json"));
Deno.bench("@msgpack/msgpack", () => {
@syrenaaa
syrenaaa / PKGBUILD
Last active June 10, 2025 03:42
arch linux pkgbuild for the Brother HL-L3210CW printer
# Maintainer: Nora Sylvaine <nora@norain.icu>
pkgname=brother-hll3210cw-cups-bin
pkgver=1.0.2
pkgrel=1
pkgdesc="CUPS wrapper for Brother HL-L3210CW(T) printer"
arch=("i686" "x86_64")
url="https://support.brother.com/g/b/producttop.aspx?c=us&lang=en&prod=hll3210cw_us_eu_as"
license=("EULA")
source=("https://download.brother.com/welcome/dlf103923/hll3210cwpdrv-1.0.2-0.i386.deb")
md5sums=("8d174ac3c93c051d535e0c4abe07a267")
@syrenaaa
syrenaaa / config.nut
Last active September 28, 2026 02:09
unbindall;
cl_crosshairstyle 7;
cl_crosshaircolor_r 0;
cl_crosshaircolor_g 255;
cl_crosshaircolor_b 255;
cl_crosshaircolor_a 255;
cl_crosshair_drawoutline 0;
cl_crosshair_thickness 1;
cl_crosshairdot false;
@syrenaaa
syrenaaa / stylus.css
Created March 4, 2026 17:18
css style for 9fans.github.io/plan9port/man/man9/
@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
body {
font-family: "Noto Sans", sans-serif;
background-color: unset;
}
tt {
font-family: "Noto Sans Mono", monospace, monospace;
@syrenaaa
syrenaaa / snip.md
Last active April 17, 2026 23:04
newsletter snip from tldr cs2

The s1mple business model

Illustration by Andy. Source: ESL

Just fou