Skip to content

Instantly share code, notes, and snippets.

View lynzrand's full-sized avatar

Rynco Maekawa lynzrand

View GitHub Profile
@lynzrand
lynzrand / SKILL.md
Created October 14, 2026 02:27
gitlab-write-rynco-mr — agent skill for drafting GitLab MRs in Rynco style
name gitlab-write-rynco-mr
description Draft, review, and revise GitLab merge request descriptions in Rynco's concise project style. Use when writing or updating an MR body for Rynco, comparing a draft with his previous MR descriptions, or deciding how much implementation detail, testing evidence, rationale, and example output belongs in a GitLab MR.

Write Rynco-Style GitLab Merge Requests

Write for reviewer orientation, not implementation exhaustiveness. Summarize what changed and why it matters, then stop.

Inspect Before Writing

@lynzrand
lynzrand / SKILL.md
Last active October 22, 2026 06:28
Coding and comment style for coding agents
name code-and-comment-style
description Apply a maintainer's coding and comment preferences when implementing or reviewing changes. Covers scope discipline, responsibility-based file and function boundaries, phase ownership, API contracts, explanatory comments, evidence-based style matching, verification, and commit hygiene. Use when writing or reviewing code, editing code comments, or preparing commits and pull requests under these preferences. Repository instructions and the current request take precedence.
user-invocable true
argument-hint [optional: task or file you are about to write]
allowed-tools
Read
Grep
Glob
[layout]
gap = 0
outer_gap_left = 0
outer_gap_right = 0
outer_gap_top = 0
outer_gap_bottom = 0
centering_mode = "on_overflow"
center_past_edges = true
width_presets = [
0.25,
@lynzrand
lynzrand / Cargo.toml
Created February 3, 2026 02:19
Chumsky side-effect demo
[package]
name = "chumsky-demo"
version = "0.1.0"
edition = "2024"
[dependencies]
chumsky = { version = "0.12.0", features = ["pratt"] }
@lynzrand
lynzrand / main.c
Created July 1, 2025 09:13
Simple C shim to reproduce issues caused by non-blocking STDIO
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void make_nonblocking(int fd) {
int flags = fcntl(fd, F_GETFL, 0);
if (flags == -1) {
perror("fcntl(F_GETFL)");
exit(1);
@lynzrand
lynzrand / git-push-stack.py
Last active April 16, 2025 03:01
Pushes the whole stack of branches to remote. Vibe coded.
#!/bin/env python
# This script pushes all stacked PRs until the trunk branch is reached
import subprocess
import sys
import argparse
def git(command, capture_output=True):
"""
Execute a git command using subprocess.
@lynzrand
lynzrand / memory.py
Created April 30, 2024 02:46
Accumulated memory usage checker (generated by GPT)
import psutil
import matplotlib.pyplot as plt
def get_running_processes():
running_processes = []
# Iterate over all running processes
for proc in psutil.process_iter(['pid', 'name', 'memory_info']):
try:
process_info = proc.info
@lynzrand
lynzrand / _image.md
Last active September 3, 2024 15:04
Dissonance calculation for up to 19 harmonics with microtonic scales shown -- also see https://gist.github.com/endolith/3066664

out

const reverseProxyBase = {
acgnx: "share.acgnx.se",
acgrip: "acg.rip",
bangumi: "bangumi.moe",
dmhy: "share.dmhy.org",
mikan: "mikanani.me",
miobt: "miobt.com",
nyaa: "nyaa.si",
nyaa_sukebei: "sukebei.nyaa.si"
}
import PIL
import PIL.Image
import PIL.ImageDraw
import numpy as np
import tqdm
image_in = "image_in.png"
def sample_pixel(image: PIL.Image.Image, x, y):