Khan Winter
@khanwinter.com
650 followers 290 following 850 posts
Computer Engineer, UMN24. WWDC2020 Scholar. Building @codeedit.app on GitHub. Blog at https://khanwinter.com
Posts Media Videos Starter Packs
Pinned
khanwinter.com
I finally got my blog up and running! I wrote a little post testing it out, and talking about my experience using Swift and building my own site generator, check it out

khanwinter.com/2024-11-02-N...
Khan's Blog · New Blog, New Me
I redesigned my blog, in Swift.
khanwinter.com
khanwinter.com
that would be perfect imo for like little things that could eventually scale up to a whole appview implementation. Great idea
khanwinter.com
The worst part about being away from home is I can’t view my graphs ;(
Reposted by Khan Winter
c-official.bsky.social
In many ways, C is a quirky, Earthbound-inspired RPG
khanwinter.com
I'm enjoying making Grafana dashboards for my home server WAY too much
Reposted by Khan Winter
khanwinter.com
Aaaaand now my discord bot is up and running
Reposted by Khan Winter
bsky.app
we hit 2 billion posts today! 🥳
khanwinter.com
Has no one made like a little iOS or Mac app for viewing Prometheus metrics? I know it’s niche but I’d like to not run the whole Grafana server on my laptop and also be able to look at graphs on my phone
Reposted by Khan Winter
swift.org
New tooling for profiling performance-critical services with Swift -- introducing the Swift Profile Recorder. More here: www.swift.org/blog/swift-p...
Screenshot of the output of Swift Profile Recorder, running Hummingbird’s hello example visualized in Speedscope.
khanwinter.com
I have too much time rn so I now have prometheus metrics for my PDS and whatever else I put on here in the future
khanwinter.com
I bet you can. It’s just a Node server and a data dir
khanwinter.com
Ngl it went so smoothly it felt way too easy, like I'm waiting for the other foot to drop type easy
khanwinter.com
Had some more issues cause I forgot how to write OpenRC service scripts but now we're ballin
khanwinter.com
Hello from `pds.khanwinter.com`!
khanwinter.com
Oh yeah for sure. I thought you were talking about *resource* efficiency cause that was what I was talking about :)
khanwinter.com
Interesting idea, I’m curious as to how
containers make things more efficient in a case like this? I’d assumed not having a supervisor process and monitoring processes and whatnot would reduce overhead in general.
khanwinter.com
Omg thanks these look like exactly what I was looking for. I'll take a peek
khanwinter.com
Shoutout linux / Gentoo for resource efficiency. I have a:

- SMB server backing up a 2TB HDD
- DNS server for my whole LAN
- Bonjour service
- HTTPS proxy
- Web server
- and Two SSH sessions

All running at the same time and it's taking up less than 1% of 8Gb Mem and 0.1% CPU. Love this stuff
khanwinter.com
- Needed to setup unbound
- Set up my home server as the authoritative DNS server on my LAN
- My laptop STILL had messed up DNS settings (thanks Apple)
- Didn't understand unbound config files

Now I know it all. On to PDS madness
khanwinter.com
Okay... after a long haul with DNS I'm finally on the move with a PDS setup

The issues I encountered today:
- My laptop's DNS settings were borked
- Caddy killed all SSH connections for a bit (no idea why)
- Could access Caddy from WAN but not LAN
- LAN required a local DNS server (NAT Hairpinning)
khanwinter.com
100%. My friend uses gentoo as their desktop(s) and it took like a month for them to get anything working. I'm stopping myself at a server because of that
khanwinter.com
Seems to me like Nix packages are just more complicated and non-source Portage packages. Maybe I’m misunderstanding but it seems like they achieve essentially the same thing
khanwinter.com
Next is setting up a Caddy server so I can host a PDS server and maybe my blog. I'd also like to experiment with a tangled runner and maybe a github actions runner but we'll see about those later.