swan tron dot com

Chomptron

Do you hate cooking blogs? Sure, we all do..

Inane story, some ads, ingredient somewhere, more ads, quantities somewhere else, another ad. Like and subscribe..

It is embarrassing to say that I bought the domain name with that sort of thing in mind. I have some of our go-tos in texts from Katie and others that I have emailed to myself (from texts from Katie). I parked some stuff on WordPress and promptly remembered that I hate WordPress about as much as I hate cooking blogs. We know what we have and what we like.. it wasn’t a very practical idea. No reason to host that sort of thing.

So instead, I sort of built an anti-food-blog: Chomptron. Type in whatever’s in the fridge and Gemini hands back a recipe. No story.

Chomptron in action

Chicken, some tomatoes, garlic, half an onion.. or just sriracha and some leftovers. Hit generate, get measurements and steps. It scales from 0.25x to 4x so nobody has to do the math, and there are filters for vegan through shellfish-free. It keeps up to 100 recipes in your browser’s localStorage.. I don’t want your email, and I don’t want to manage a user database. Dark mode, to wreck your eyes.

The Stack

Node 20 + Express, vanilla HTML/CSS/JS, and gemini-2.5-flash-lite, on Cloud Run. It scales to zero, so if nobody’s using it I pay nothing. A 24-hour cache and some rate limiting keep the Gemini bill sane. Push to main, Cloud Build builds the container, a gang of tests run, and it’s live a few seconds later. Health checks, Open Graph tags, and you can pin it to your home screen.. the regular dev junk.

Live: https://chomptron.com

Source: https://github.com/swantron/chomptron

It’s free to use and nearly free to run (plz don’t spam it). It was a fun excuse to get back into GCP and keep a JS project clean.

Secure Base Images for Docker

Do you hate insecure base images? Sure, we all do..

I built a thing: secure-base-images. It’s a minimal, security-hardened Docker base image for static Go binaries.

CI workflow running tests and build

Most Docker images are bloated. Shells, package managers, and a ton of dependencies you don’t need. That’s attack surface your security team loves to talk about, and it drives fast pipeline guys like me insane. For a static Go tool you literally just need the binary and some certs.

So this one is the binary and some certs. No shell, no package manager, runs as uid 65532, amd64 and arm64. Three lines in ya Dockerfile:

FROM swantron/secure-base:latest
COPY myapp /app
ENTRYPOINT ["/app"]

Push a tag, GitHub Actions builds it, scans it with Trivy, and publishes to Docker Hub if it’s clean (it is.)

Clean Trivy scan - zero vulnerabilities

Under the Hood

The workflow does the heavy lifting:

  1. Runs integration tests (non-root user, no shell, CA certs present, etc.)
  2. Builds the image
  3. Scans with Trivy - build fails on CRITICAL/HIGH
  4. Multi-platform build (amd64/arm64)
  5. Pushes to Docker Hub on release tags

Published to Docker Hub with latest and version tags

Source: https://github.com/swantron/secure-base-images

tronswan update

I’ve been busy with tron swan dot com.

It’s still just hammering on stuff and learning, with a robot motif. The robot spins.

Spinning robot

Reminder: the site is a playground, and is sort of stupid. It is also a nicely done React site with modern patterns and a legit pipeline. I run a bunch of health checks for other services.. there is a nice weather feature.. I use it to stream Spotify while I work. It is all over the place.

Here’s the source: https://github.com/swantron/tronswan

Mount Baldy

Katie and I finally made it to Mt Baldy.

The girls were with my parents in Glasgow for the week (Camp Ernie), so we used the time off to take a nice relaxing aggressive hike. The M to Mt. Baldy trail is 8 miles round trip with 4,300 feet of elevation gain, rated hard, with a 4–7 hour estimate. Recharging the ol batteries..

Fun fact: this peak has no official name. “Baldy Mountain” officially belongs to a summit a mile north along the ridge.. covered in trees, with a rock scramble to reach the actual summit. Not bald in the slightest. Everybody calls this one Baldy anyway.

A decade ago we tried this one, took a wrong turn, and somehow ended up on the Foothills Trail.. clueless, sweaty, and nowhere near the summit. I bonked and ate a bag of Doritos on an incline next to the obviously wrong trail, looking up at Baldy from somewhere east of Sypes. It has been sitting on the list ever since.

final scree climb up Baldy’s ridge

Got there this time. Clear day, Bozeman laid out below, no wrong turns. No Doritos though.. you can’t win them all

Katie and me at the summit

Peloton tried to keep up. Not accurate, but it logged 12.22 miles, 5,081 feet of gain, and just under five hours.

Peloton outdoor walking stats

Peloton route map

Been there. Done that.

Eclipse Colander

strain noodles: ❌
strain sun: ✅

40%-ish solar eclipse in Bozeman. Time to make crescents.

cidamin

10 year-old provided jellybean feedback to 12 year-old..

tron swan dot com

Alex from Peloton likes to say something along the lines of “you don’t have to get ready if you stay ready.” Its pretty good advice.

Along those lines I decided to put together a react app to stay fresh. I’ve been hammering on (gitlab) pipelines and api frameworks at work for most of the year.. time for a project.

It is live on tronswan.com

The goals were to:
- hit some APIs from react
- mess around and build some components
- implement playwright on a project
- write GH Actions to handle build / test / deploy
- POC CI/CD to DigialOcean

Pretty fun project.. I’m displaying weather stuff and doing fizzbuzz via a weird component. Full CI/CD. Take a look if you’re bored.

https://github.com/swantron/tronswan

MT is Cold

➜  ~ curl -s https://api.openweathermap.org/geo/1.0/direct\?q\=Bozeman\&limit\=5\&appid\=$WEATHER_API_KEY | jq .
[
  {
    "name": "Bozeman",
    "local_names": {
      "en": "Bozeman",
      "ru": "Бозмен"
    },
    "lat": 45.6794293,
    "lon": -111.044047,
    "country": "US",
    "state": "Montana"
  }
]
➜  ~ curl -s https://api.openweathermap.org/data/2.5/weather\?lat\=45.67\&lon\=-111.04\&appid\=$WEATHER_API_KEY\&units\=imperial | jq .main
{
  "temp": -18.99,
  "feels_like": -31.59,
  "temp_min": -21.44,
  "temp_max": -15.3,
  "pressure": 1022,
  "humidity": 71
}

MT 5G

1/19/2023 - Bozeman gets Verizon 5G

It is both fast and several years late.

ooh zap!

I mentioned in the previous post that the lightening picture would possibly look nice on a canvas, or
“It would, without any doubt, look fucking awesome on a sleeveless shirt if I crop out the neighbors’ houses.”

Here’s the crop..

.. go nuts.