Skip to content

Instantly share code, notes, and snippets.

View rozenmd's full-sized avatar
👋
🇦🇺 in 🇫🇷

Max Rozen rozenmd

👋
🇦🇺 in 🇫🇷
View GitHub Profile
@southpolesteve
southpolesteve / AGENTS.md
Created April 28, 2026 03:02
Bare Bones Memory

Session Start

At the beginning of a session:

  1. Read this file.
  2. Read ~/memory/active-projects.md.
  3. Read the last few days of session logs in ~/memory/session-logs/
  4. Read the relevant project files for the current request.

While Working

@threepointone
threepointone / eggs.md
Last active February 6, 2026 15:52
Sunil's Gochujang eggs

Sunil's Eggs.

These are my eggs. I like this recipe because it's delicious, doesn't take too much time to make, and goes well with other meals in my life.

All instructions are negotiable, adjust based on vibes. You feel me?

Start by slicing up an onion. I like using a milder tasting onion, or a banana shallot. I like slices so I can taste it in the final product, but feel free to chop it finer if you'd like.

In a bowl, make the 'sauce'. A teaspoon each of gochugang paste, soy sauce, sesame oil, a couple of pinches of brown sugar, mirin or rice vinegar (I prefer mirin because it doesn't smell as strong, but the vinegar is more 'traditional'). Also add a teaspoon of garlic paste, and a teaspoon of ginger paste.

#!/bin/bash
UPTIMEROBOT_TOKEN="uptimerobot-token-here"
OHDEAR_TOKEN="ohdear-token-here"
OHDEAR_TEAM_ID=123456789
OFFSET=0
LIMIT=50
TOTAL=1000000
@jaredpalmer
jaredpalmer / MarkdownPage.tsx
Created February 17, 2021 13:52
Get headers from MDX in Next.js
import {MDXProvider} from '@mdx-js/react';
import {MDXComponents} from 'components/MDX/MDXComponents';
import {Toc} from 'components/Toc/Toc';
import * as React from 'react';
export interface MarkdownProps<Frontmatter> {
meta: Frontmatter;
children?: React.ReactNode;
}

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

@Jessidhia
Jessidhia / react-scheduler.md
Last active June 11, 2024 10:48
Implementation notes on react's scheduling model as of (shortly before) 16.8.0

Implementation notes on react's scheduling model as of (shortly before) 16.8.0

While the public API intended for users to use is the scheduler package, the reconciler currently does not use scheduler's priority classes internally.

ReactFiberScheduler has its own internal "mini-scheduler" that uses the scheduler package indirectly for its deadline-capable scheduleCallback.

This is kind of a documentation of implementation details that I suppose will be gone by the end of the year, but what can you do.

@rozenmd
rozenmd / macOS-setup.sh
Last active August 1, 2023 22:40
Set up a macOS device for development in one script.
#!/bin/bash
# Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
####################################
# Brew apps
####################################
brew install cask
@tomdyson
tomdyson / wagtail-zappa-rds.md
Last active May 29, 2019 14:49
Wagtail on Lambda with RDS

Wagtail on AWS Lambda, with Zappa and RDS

Install Wagtail and Zappa, and create an empty site:

pip install wagtail zappa zappa-django-utils
pip install pip==9.0.3 # see https://github.com/Miserlou/Zappa/issues/1471
wagtail start zappa_rds
@tomdyson
tomdyson / wagtail-on-zappa.md
Last active February 18, 2025 15:12
Wagtail on AWS Lambda, with Zappa

Wagtail on AWS Lambda, with Zappa

Install Wagtail and Zappa, and create an empty site:

pip install wagtail zappa zappa-django-utils
pip install pip==9.0.3 # see https://github.com/Miserlou/Zappa/issues/1471
wagtail start foo
@maticrivo
maticrivo / epub.css
Created January 10, 2018 08:30 — forked from bmaupin/epub.css
You Don't Know JS Ebooks
body {
text-align: justify;
}
code, pre {
font-family: "Hack", monospace;
}
h1, h2, h3, h4, h5, h6 {
text-align: left;