Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
nolanlawson / README.md
Last active July 27, 2025 17:18
Updating Redis from v6.0 to v8.0.3 on Ubuntu 22.04

Updating Redis from v6.0 to v8.0.3 on Ubuntu 22.04

For the Mastodon v4.4 release, you need at least Redis v6.2+. Unfortunately if you're running Ubuntu 22.04, the latest distro release of Redis is v6.0 which is too old. So you need the official Redis PPA instead. (Assuming you want to avoid the full Ubuntu update, which I happen to.)

Simply adding the PPA is not enough, because Ubuntu tries to block it in favor of its own ESM (Extended Security Maintenance) version. So it ends up being kind of a pain.

This is a simple bash script you can run (I encourage running every command line-by-line just in case) which successfully

@nolanlawson
nolanlawson / .gitignore
Last active April 8, 2025 18:11
Oxlint stack overflow minimal repro
.idea
node_modules
@nolanlawson
nolanlawson / README.md
Last active December 2, 2024 21:52
ESTree Toolkit types issue

repro estree-toolkit types issue

Usage: npm it

@nolanlawson
nolanlawson / index.js
Last active November 29, 2024 16:32
test isConnected during move in jsdom
const jsdom = require("jsdom")
const { JSDOM } = jsdom
const { window } = new JSDOM(``)
const { document } = window
window.customElements.define('x-foo', class extends window.HTMLElement {
connectedCallback() { console.log('cC') }
disconnectedCallback() { console.log('dC, this.isConnected?', this.isConnected) }
@nolanlawson
nolanlawson / libvips-mastodon.sh
Last active July 27, 2025 17:17
Setting up libvips on Ubuntu 22.04 for Mastodon
# partially taken from https://github.com/libvips/libvips/wiki/Build-for-Ubuntu
sudo apt remove -y libvips42
sudo apt update
sudo apt install -y libcgif-dev \
build-essential \
ninja-build \
bc \
wget \
libfftw3-dev \
libopenexr-dev \
@nolanlawson
nolanlawson / .gitignore
Last active September 30, 2024 16:59
Test Vite with Rollup plugin warnings
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active September 30, 2024 16:59
Test Vitest with Rollup plugin warnings
node_modules
@nolanlawson
nolanlawson / chrome.config.json
Last active September 9, 2024 05:34
Tachometer config for Firefox/Chrome snap paths on Ubuntu
{
"browser": {
"name": "chrome",
"headless": true,
"binary": "/snap/chromium/current/usr/lib/chromium-browser/chrome"
}
}
@nolanlawson
nolanlawson / .gitignore
Last active August 20, 2024 20:52
Repro WDIO Custom Elements bug
node_modules
@nolanlawson
nolanlawson / .gitignore
Last active March 9, 2024 18:53
Repro an issue with Vitest and crypto.subtle.digest
node_modules