RSSAmplifier

Blog

bluebones.net

Adventures in Computer Programming – bakert@gmail.com

bluebones.netRSS feed ↗10 posts

Latest posts

Are your Fellow Human Beings your Comrades?

Adler wrote about Gemeinschaftsgefühl (community feeling) and viewing others as Mitmensch (fellow human). Koga and Kishimi, in their popular rendition of Adlerian psychology, extensively use the word nakama (fellow). In the English translation ( © 2017 by Ichiro Kishimi and Fumitake Koga , so by the authors?), this is rendered as comrade . Comrade for an idea that Continue reading "Are your Fellow…

muted, accent and secondary are all the same color in default shadcn/ui themes

True in both v3 and v4. Wat.

Running a dozen Next.js devservers without losing your mind

Right now it seems to me the best way to work is with a bunch of Claude Code instances via Conductor. I m getting out north of 30 PRs a day this way, some of them very significant in scope. What this means, though, is a lot of context switching. I am not going to remember Continue reading "Running a dozen Next.js devservers without losing your mind"

Rebase a whole stack at once

You re working on a series of PRs, one per branch, each one based upon the precediung one. trunk -> my-feature-1 -> my-feature-2 -> my-feature-3 -> my-feature-4 Then you get a code review on my-feature-1 and you need to make a change. Now you need all the branches from my-feature-2 onwards to be rebased on the Continue reading "Rebase a whole stack at once"

shadcn/ui v3/v4 and –destructive theme variables

In shadcn v3 there were two destructive vars in a theme, --destructive and --destructive-foreground. Various shadcn components used these the right way, but several used them wrong, using the background color (--destructive) for text. They mostly got away with this because both were generally a shade of red. But on dark backgrounds, it looked wrong. Continue reading "shadcn/ui v3/v4 and…

Psychopathic Git Shortcuts

if type brew >/dev/null; then FPATH=$(brew --prefix)/share/zsh-completions:$FPATH autoload -Uz compinit compinit fi #compdef gt ###-begin-gt-completions-### # # yargs command completion script # # Installation: gt completion >> ~/.zshrc # or gt completion >> ~/.zprofile on OSX. # _gt_yargs_completions() { local reply local si=$IFS IFS=$' ' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER"…

Sort committers by average length of commit message

git log --no-merges --pretty=format:'COMMIT_START %an %B COMMIT_END' \ awk ' BEGIN { RS = "COMMIT_END\n"; FS = " " } /COMMIT_START/ { author = $2 message = "" for (i = 3; i 3) message = message " " message = message $i } len = length(message) authors[author] += len counts[author]++ if (!min[author] len Continue reading "Sort committers by average length of commit message"

Gradient Borders with Transparent Background

<html lang="en"> <head> <title>Gradient borders with transparent background</title> <meta charset="utf-8"> <style> * { box-sizing: border-box; } body { background-color: black; color: white; } .card { background-color: gray; color: black; } .gradient-border-mask { display: flow-root; position: relative; padding: 1.3rem; } .gradient-border-mask::before { content: ""; position: absolute; top: 0;…

How to keep your input and dismiss/cancel atuin

The normal behavior of atuin is to put either the command you matched onto your commandline, or nothing. So if you Ctrl-r and type something with no good match and exit, you lose what you have typed. You can Ctrl-g to get back what you had when you pressed Ctrl-r but anything you typed after Continue reading "How to keep your input and dismiss/cancel atuin"

Starting more than one dev webserver each in its own terminal window (Mac)

#!/usr/bin/env zsh # Script to start monorepo development processes in separate terminals open_position_run() { local dir=$1 local cmd=$2 # Start the server osascript -e 'tell application "Terminal" do script "cd '"$dir"' & nvm use 20 & '"$cmd"' " in window 1 end tell' } open_position_run "/Users/bakert/monorepo/apps/app1 "pnpm dev" open_position_run "/Users/bakert/monorepo/apps/app2 "pnpm dev"