Skip to content

Instantly share code, notes, and snippets.

View jvgomg's full-sized avatar
🍕
Eatiiing pizza

James Greenaway jvgomg

🍕
Eatiiing pizza
View GitHub Profile
@jvgomg
jvgomg / strawberry-aac-transcoding.md
Created February 22, 2026 15:22
Fix Strawberry AAC transcode bitrate settings when copying to an iPod

Strawberry AAC Transcoding Configuration

Investigation and fix for AAC encoder settings not being applied when copying music to iPod via Strawberry music player.

Problem Statement

When copying music to an iPod using Strawberry, the AAC transcoding bitrate settings configured in the UI were not being applied. Files were being encoded at a default bitrate regardless of the configured value.

Initial Hypothesis (Incorrect)

@jvgomg
jvgomg / README.md
Created November 30, 2025 18:24
Optimal theme-color meta tag integration with next-themes for Next.js App Router

Optimal Theme Color Integration with next-themes

Utilities for integrating next-themes with Next.js App Router to provide a clean light and dark theme switching experience. Currently handles light and dark themes, but could be extended to support multiple themes.

Problem

  1. Browser chrome doesn't update — On iOS and macOS, toggling theme via next-themes doesn't update the browser chrome because theme-color meta tags aren't synced.

  2. Flash on load — Without prefers-color-scheme media queries on the initial meta tags, users see a flash of the wrong color before JS hydrates.

@jvgomg
jvgomg / magic-words.ts
Created April 28, 2025 07:16
Generate a set of magic words using a Linear Congruential Generator
// Configurable LCG function
function lcg(seed: number, multiplier: number, increment: number, modulus: number) {
return function() {
seed = (multiplier * seed + increment) % modulus;
return seed;
};
}
export function generateWords(
words: string[],
@jvgomg
jvgomg / dokku-kirby-autogit.md
Created February 11, 2018 15:02 — forked from woudsma/dokku-kirby-autogit.md
Dokku + Kirby + AutoGit

TL;DR

  • Configure Kirby for Dokku
  • Install deployment-keys and host keys Dokku plugins
  • Set up staging and production environments
  • Clone project repository into apps persistent storage folders
  • Mount desired folders including .git folder to apps
  • Add GIT_DIR and GIT_WORK_TREE environment variables to containers
  • Deploy to Dokku
@jvgomg
jvgomg / climb-social-example.html
Last active April 28, 2025 07:12
Demo React Climb Social Slideshow Embed
<!doctype html>
<html lang="en">
<head>
<title>Slideshow</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div
@jvgomg
jvgomg / keybase.md
Last active February 6, 2016 10:30

Keybase proof

I hereby claim:

  • I am jvgreenaway on github.
  • I am jvg (https://keybase.io/jvg) on keybase.
  • I have a public key ASBbHKbE-rs9mSqP6sZdShVrYZ8kUFtTxUbP0ckAIcue7Qo

To claim this, I am signing this object: