Adam Faris
@af9.us
š¤ 75
š„ 273
š 103
Storage Curious | No Cloud, No Problem | Data Infra Fan Writes at
https://amf3.github.io
TIL Go quietly fixed sharing behavior with for loop variables being used by goroutines. Previous to Go 1.22 each goroutine reused the same loop variable. Now each iteration gets its own copy. No more i=5 five times. š¤ This explains why one might find i := i in older code, a work around.
#golang
4 days ago
2
3
0
In the spirit of writing more, here's a post on how I build Go CLIs with urfave/cli, how it keeps help and actions coupled with options, and why I'll use it with future projects.
amf3.github.io/articles/cod...
#golang
#cli
loading . . .
Go CLIs: Creating Subcommands and Flags
Using urfave/cli to create polished CLI applications
https://amf3.github.io/articles/code/go/cli_args/
about 1 month ago
0
3
0
Speaking of GC, there's a thread on r/golang that discusses the new experimental Green Tea GC in Go 1.25. Testing shows its not better but it's not worse.
www.dolthub.com/blog/2025-09...
add a skeleton here at some point
about 1 month ago
0
3
0
What happens when
@birdsoftheworld.bsky.social
combines machine learning with a phone? You get a bird ID app that uses bird calls to ID birds. Think PokƩmon Go but with real animals.
merlin.allaboutbirds.org
loading . . .
Merlin Bird ID - Home
Identify Bird Songs and Calls Sound ID listens to the birds around you and shows real-time suggestions for whoās singing. Compare your recording to the songs and calls in Merlin to confirm what you...
https://merlin.allaboutbirds.org
about 1 month ago
1
3
0
With a QEMU article stalled at 80% complete and a tiny utility project waiting to be published to github, I should probably pay attention to this advice.
add a skeleton here at some point
about 2 months ago
0
4
0
Interesting. QEMU 10.1 supports WASM and can run inside a browser. š¤
wiki.qemu.org/ChangeLog/10.1
loading . . .
ChangeLog/10.1 - QEMU
https://wiki.qemu.org/ChangeLog/10.1
about 2 months ago
0
13
6
Iām feeling out of the loop. I started with MD5 checksums to find duplicate files in local storage. Then I read modern CPUs have instruction sets for SHA256. Oh but there's also xxhash which is even faster at checksums.š
#golang
output shows md5 is 3x slower than sha256 and 5x slower than xxhash
2 months ago
1
6
2
I like this
#golang
comparison of different SQLite drivers. They include test environment specifics, which allows me to replicate the findings.
github.com/cvilsmeier/g...
Without specifics I wonder if the results are valid. Something to keep in mind for the next Product A is better than B post.
loading . . .
GitHub - cvilsmeier/go-sqlite-bench: Benchmarks for Golang SQLite Drivers
Benchmarks for Golang SQLite Drivers. Contribute to cvilsmeier/go-sqlite-bench development by creating an account on GitHub.
https://github.com/cvilsmeier/go-sqlite-bench
2 months ago
0
1
0
reposted by
Adam Faris
Chris
2 months ago
SlateDB Go bindings!
github.com/slatedb/slat...
loading . . .
First-pass Go binding for SlateDB by CurryFishBalls9527 Ā· Pull Request #691 Ā· slatedb/slatedb
It's very basic and I'm not very familiar with gobindings & rust, but I was able to get basic stuff working. Hope it helps!
https://github.com/slatedb/slatedb/pull/691
0
1
1
I like this post explaining how file systems can be implemented with a key value store.
blog.vmsplice.net/2024/01/key-...
loading . . .
Key-Value Stores: The Foundation of File Systems and Databases
File systems and relational databases are like cousins. They share more than is apparent at first glance. It's not immediately obvious t...
https://blog.vmsplice.net/2024/01/key-value-stores-foundation-of-file.html
3 months ago
1
2
0
Iāve been quiet lately while looking into a bufferbloat issue with my home internet. Bufferbloat is latency caused when a router buffers too many packets and can impact games and video calls.
3 months ago
1
0
0
Something on my TODO list is writing up how to automate Jenkins deployments. Itās essentially a two step deployment. 1) The āconfiguration as codeā plugin installs plugins and manages users. 2) The āPipelines as codeā plugin manages projects. Okay, okay, Iāll move it to the next sprint.
4 months ago
0
0
0
I just launched Tarchive, a simple, tar-based HTTP object store. Think of it as a personal object store that uses append-only .tar archives called āpails.ā Itās fast, inspectable, and scriptable. Great for devs, homelabbers, and archivists. GitHub:
github.com/amf3/tarchive
#Go
#OpenAPI
#homelab
4 months ago
1
4
1
Hey look at that. I complain about something and it gets fixed. š The latest release of oapi-codegen announced a new feature for dealing with optional pointers.
#OpenAPI
#golang
github.com/oapi-codegen...
4 months ago
0
2
0
Docker Offload is an interesting pivot. My guess is they are using predefined contexts in Docker desktop to redirect to their cloud services. This seems like something which could be done locally. Now to find that Nvidia GTX1060 I have in my spare parts bin for running OpenLLaMA. š
4 months ago
0
0
0
Generics in Go finally clicked. š Examples felt abstract. Until generics saved me from writing a bunch of boilerplate in my unit tests. Read about it here:
amf3.github.io/articles/cod...
#golang
#generics
#testing
loading . . .
Go Generics: A Real World Use Case
Using Generics for Testing Pointers In Structs
https://amf3.github.io/articles/code/go/real_world_generics/
4 months ago
0
3
0
My new sprinkler controller is finally online. It's
#esp32
based and ESPHome is doing the heavy lifting. I stuck a DHT22 temp sensor on it because why not.
#esphome
even has a /metrics endpoint so I can graph relay state and sensor temp via Prometheus.
4 months ago
0
3
0
OpenAPI is so easy right? Until it generates Go structs full of pointers. š I wrote up what worked and what didnāt. āOpenAPI in Practice: Go Server + Python Client from Specā
amf3.github.io/articles/api...
#OpenAPI
#Golang
#Python
4 months ago
1
3
0
š¢ New post - DIY Docker Volume Drivers: Whatās Missing Whatās missing in the plugin ecosystem and how I built a simple Go plugin without root, FUSE, or cloud lock-in.
amf3.github.io/articles/sto...
#Docker
#GoLang
#DevOps
#Homelab
loading . . .
DIY Docker Volume Drivers: What's Missing
How to write a simple volume plugin. No root, no FUSE, just HTTP and Go
https://amf3.github.io/articles/storage/docker_volumes/
4 months ago
0
2
0
Iām starting to get why Docker plugin development slowed down. * write the plugin * create a image containing the plugin * create a throw away container using the image * extract the rootfs from the container with ādocker exportā into a directory named rootfs * finally run ādocker plugin createā
5 months ago
1
0
0
I was curious how snappy compared to lz4 and wrote a go program to find out. Snappy seems to be a bit better with both compressed data output and resource usage. Input is the first 1,000,000 numbers of pi.
5 months ago
1
3
1
I was looking at Mulitpass docs and noticed this deprecation banner. While it makes sense to simplify overlapping product features, I'd like to think someone from Canonical read my cloud-init series. š
5 months ago
0
0
0
This is exciting. I just noticed an issue in Moby that has a linked prototype for supporting CSI plugins in regular Docker (not swarm). I hope it gets approved.
github.com/moby/moby/is...
5 months ago
1
0
0
What if a tar archive could behave like an append-only object store that supports versioning of objects? I demonstrate how it's possible in my latest post.
amf3.github.io/articles/sto...
loading . . .
Using Tar Files as Object Store Storage
Implementing Object Store storage with Log Structured Archives.
https://amf3.github.io/articles/storage/tar_objectstore/
5 months ago
0
1
1
Why yes, I do use Jenkins to water my blueberry plants. Don't you? š I'm replacing a Particle Photon with a ESP32 and
esphome.io
. A few blocks of YAML results in a web server that toggles sprinkler relays on or off. I never thought I would buy into the phrase 'YAML programer' but now I do. š¤Æ
5 months ago
0
0
0
I've been practicing my soldering skills today. This is a q-tip for scale. I'm still suspicious of the left part but it will remind me to not mix power cables from different modular PSUs. 12v & 5v got applied to the 5v & 3v lines on a 10 TB SATA drive.
6 months ago
1
2
0
How many packets would a woodchuck NAT if a woodchuck could NAT packets? šæļø Apparently ... at least three. Triple NAT, QEMU on macOS, unified logging, Wireshark, all here:
amf3.github.io/articles/vir...
loading . . .
Virtual Router Lab on macOS with QEMU
Debugging macOS QEMU networking with unified logging and lightweight Linux VMs
https://amf3.github.io/articles/virtualization/macos_qemu_networks/
6 months ago
0
0
0
I discovered qemu has support for the vmnet framework in MacOS. This allows two VMs to connect to each other.
www.qemu.org/docs/master/...
In my case, one vm is running Alpine & the other is a Mikrotik router image. Now I can test network changes without getting yelled at by the family. š
loading . . .
QEMU QMP Reference Manual ā QEMU documentation
https://www.qemu.org/docs/master/interop/qemu-qmp-ref.html#object-QMP-net.NetdevVmnetHostOptions
6 months ago
0
0
0
I just published my notes on tips & tricks for managing QEMU storage images. Useful for manipulating cloud images before deployment. From snapshots to raw conversions, itās all here.
amf3.github.io/articles/vir...
loading . . .
Tips for working with qemu images
About QEMU images QEMU uses files to emulate storage devices, and the features available depend on how those files are created. While QEMU can emulate disks from Parallels and VirtualBox, Iām going to...
https://amf3.github.io/articles/virtualization/qemuimage_tips/
7 months ago
0
0
0
My thoughts on going back to IRC channels after years of using slack? To quote my dog, it's ruff! š¾
7 months ago
1
1
0
Looking for helpful hints on troubleshooting cloud-init provisioning issues? You can read about them in my latest post.
amf3.github.io/articles/clo...
loading . . .
cloud-init troubleshooting
Introduction I previously wrote an introduction to cloud-init. Iād like to now follow up with a discussion on troubleshooting. cloud-init failures on remote hosts can be challenging. Depending on the ...
https://amf3.github.io/articles/cloudinit/troubleshooting/
8 months ago
0
0
0
reposted by
Adam Faris
FƩlix GV
8 months ago
I think it was a not very well guarded secret⦠but LinkedInās stream team will finally talk publicly about their Kafka rewrite, many years in the making, called North Guard, as well as their abstraction on top of Kafka + NG, called Xinfra. Sign up here to hear about it:
meetu.ps/e/NWkXx/466N...
loading . . .
[In-Person + Online] Stream Processing with Apache Kafka, Samza, and Flink, Wed, Apr 16, 2025, 5:30 PM | Meetup
* **Venue**: Together (Meeting Room) -- 700 E Middlefield Rd, Mountain View, Building 4, 1st Floor * **Zoom**: [https://linkedin.zoom.us/j/99142403394](https://linkedin.zoo
https://meetu.ps/e/NWkXx/466Ng/i
6
16
4
I tried out Flox and like its ability for managing build dependencies. It's conceptually like RVM for Ruby but language agnostic. Check it out:
flox.dev
loading . . .
Flox | Your dev environment, everywhere
Manage and share development environments with all the frameworks and libraries you need, then publish artifacts anywhere. Harness the power of Nix.
https://flox.dev
8 months ago
0
5
1
I just posted my second article on automating Ubuntu installs with autoinstall & cloud-init. Learn how to provision bare-metal instances locally with minimal effort. Read it here:
amf3.github.io/articles/clo...
loading . . .
https://amf3.github.io/articles/cloudinit/autoinstall/"
8 months ago
0
0
0
I just posted a "getting started with cloud-init" guide on using cloud-init with Multipass. This setup will quickly provision VMs on your local machine, making it easy to test and iterate on cloud-init configs before deploying to real hosts.
amf3.github.io/articles/clo...
loading . . .
Getting started with cloud-init for unattended Linux deployments
Intro Cloud compute companies like GCP, AWS, or Azure offer a management API for allocating resources. In the on-premise space, services such as Docker or Incus provide APIs for managing containers or...
https://amf3.github.io/articles/cloudinit/intro/
9 months ago
0
0
0
What happens when using llama3 to check sentence structure. > The first sentence feels like a non-sequitur. Ouch š
9 months ago
0
0
0
The differences in dependency requirements between cloud-init (Canonical) & tiny-cloud (Alpine Linux) are interesting. Both rely on external utils for disk partitioning, which is fine. The tiny-cloud approach uses shell where cloud-init needs a python runtime.
9 months ago
1
1
0
This is a neat trick. Cloudflare, OpenDNS & Google DNS offer a TXT record that returns your public IP.
theboreddev.com/how-to-obtai...
9 months ago
0
0
0
It's nice to see that Incus, the open source fork of LXD, is being mentioned by TrueNAS.
www.truenas.com/blog/truenas...
loading . . .
Fangtooth Unifies the TrueNAS Community
Get ready for TrueNAS 25.04 āFangtoothā, bringing major VM and LXC improvements, more flexible App networking, and Fibre Channel for Enterprise.
https://www.truenas.com/blog/truenas-fangtooth-25-04/
9 months ago
2
1
0
It's interesting to see new companies having to learn on premise practices.
blog.railway.com/p/data-cente...
loading . . .
So You Want to Build Your Own Data Center
When it comes to infrastructure engineering, building a data center is probably closer to building a house than to deploying a Terraform stack.
https://blog.railway.com/p/data-center-build-part-one
10 months ago
2
2
0
Aww cloud-init you little rascal you. It keeps creating the LVM volume on the swap partition instead of where it belongs. š
10 months ago
1
1
0
I'm looking into
github.com/pressly/goose
for managing relational DB schemas & got stuck on the DSN string. Help shows this: goose [options] DRIVER DBSTRING COMMAND
loading . . .
GitHub - pressly/goose: A database migration tool. Supports SQL migrations and Go functions.
A database migration tool. Supports SQL migrations and Go functions. - GitHub - pressly/goose: A database migration tool. Supports SQL migrations and Go functions.
https://github.com/pressly/goose
11 months ago
1
2
0
I knew working with Go was giving me
#perl5
flashbacks. Now I have proof. panic: regexp: Compile(`don't\(\).*?(?=don't\(\))`): error parsing regexp: invalid or unsupported Perl syntax: Something I ran across when working on day 3 part 2 of AOC.
11 months ago
1
2
0
The ldd command displays a list of linked libraries used by a binary. Until reading this post, I didnāt realize ldd calls the binary which could lead to elevated privileges.
catonmat.net/ldd-arbitrar...
LDD source (surprisingly itās Bash).
sourceware.org/git/?p=glibc...
11 months ago
0
1
0
It's been a while since posting on Bluesky. Advent of Code seems like a good way to restart. I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024
#AdventOfCode
adventofcode.com/2024/day/1
loading . . .
Day 1 - Advent of Code 2024
https://adventofcode.com/2024/day/1
11 months ago
3
3
0
Odd it's not available on home-brew. This must be the GW drug to trick people into installing cargo and rust.
https://lib.rs/crates/charasay
over 2 years ago
1
1
0
Last night I discovered the ācommand + /ā shortcut in Intellij. The shortcut easily comments or uncomments lines of code. Whatās your favorite Intellij shortcut & why?
over 2 years ago
1
1
0
Thats an announcement I missed. ISC EOLāed dhcpd in 2022.
https://www.isc.org/blogs/isc-dhcp-eol/
over 2 years ago
1
0
0
I'm thinking of going back to OpenWRT by flashing my EdgeOS & Unifi devices. Here's a quick gist on using QEMU with macOS to emulate a OpenWRT VM.
https://gist.github.com/amf3/eaf6ccd0d3a8bdfd9572938c87397353
over 2 years ago
0
6
0
you reached the end!!
feeds!
log in