Write a minimal APFS tool (pkg/apfs/chown.go) that modifies file ownership
(UID/GID) directly on a raw APFS disk image, bypassing the kernel VFS. This
eliminates the sudo chown root:wheel requirement from macOS guest disk patching.
"Go is about making software engineering more effective, not just making programmers more productive." - The Go Team
Target Go Version: Go 1.24+ (Latest Stable: Go 1.24.5 released July 8, 2025 - Go 1.25 expected August 2025)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: helm.cattle.io/v1 | |
| kind: HelmChart | |
| metadata: | |
| name: fleet-crd | |
| namespace: kube-system | |
| spec: | |
| repo: https://rancher.github.io/fleet-helm-charts/ | |
| chart: fleet-crd | |
| targetNamespace: cattle-fleet-system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| # Don't run mesg unless we have a tty; otherwise we'll get a warning from `docker run ... bash -l -c ...` | |
| RUN perl -i -pe 's/mesg n/tty -s && mesg n/' /root/.profile | |
| # Install packages for building ruby | |
| RUN apt-get update | |
| RUN apt-get install -y --force-yes \ | |
| build-essential curl git sudo zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev unzip vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| # Shorten video by limiting the max wait time | |
| my $max_pause = 1; | |
| # To make interactive commands more noticable, insert a longer delay | |
| # after lines with a command prompt. | |
| my $prompt = qr/jan\@zuze/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat .buildpacks | |
| nodejs_buildpack | |
| php_buildpack | |
| $ cf push multi | |
| Starting app multi in org hpe / space myspace as admin... | |
| [...] | |
| Staging... | |
| =====> Locating Admin Buildpack: nodejs_buildpack | |
| =====> Detected Framework: node.js 1.5.8 |