Date: 2026-02-22 Server: Cloud VPS (4 vCPU, 8GB RAM, 80GB disk, Ubuntu 24.04) ZeroClaw version tested: v0.1.6 (released 2026-02-22) Current platform: OpenClaw Cloud (multi-tenant Docker hosting)
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
| package main | |
| type btreeIter[T any] struct { | |
| next func() (T, bool) | |
| stop func() | |
| toRow func(T) Row | |
| } | |
| func NewBTreeRowIter[T any](t *btree.BTreeG[T], ge, lt T, toRow func(T) Row) RowIter { | |
| next, stop := iter.Pull(func(yield func(T) bool) { t.AscendRange(ge, lt, yield) }) |
There are 2 plugins in this POC:
- Kubernetes Ingestor - this plugin is a catalog entity provider which creates catalog entities directly from kubernetes resources. it has the ability to ingest by default all standard k8s workload types, allows supplying custom GVKs, and has the ability to auto-ingest all crossplane claims automatically as components. There are numerous annotations which can be put on the kubernetes workloads to influence the creation of the component in backstage. It also supports creating backstage templates and registers them in the catalog for every XRD in your cluster for the Claim resource type. currently this supports adding via a PR to a GitHub repo or providing a download link to the generated yaml without pushing to git.
- Crossplane Resource Frontend - this is a frontend plugin which provides visibility into the crossplane claim, composite resource and managed resources associated with a component. This relies heavily on system
or...how to use ADC and run your own STS token broker
An STS server will exchange one token for another. This protocol is used by GCP Workload Federation.
THis example runs your own STS server with GCP where the STS server accepts a source token, validates it and the returns a gcp access_token
For more information about STS servers, see
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "context" | |
| "cloud.google.com/go/storage" |
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
| graph Doskvol { | |
| concentrate=true; | |
| edge[color=forestgreen] | |
| subgraph legend { | |
| color = black; | |
| label = "Legend"; | |
| "Tier I"--"Tier II"--"Tier III"--"Tier IV"--"Tier V" | |
| } | |
- good architecture = allow changes w/ flexibility + delay decision
- Entities: pure; small sets of critical business rules. Should be most independent & reusable. Can be an object with methods or data structures & functions
- Use case: not as pure; is an object. contains data elements & operations.
- Entities are lower level than (don’t depend on) use cases since use cases are closer to inputs/outputs.
- Entities & use cases are 2 layers
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
| // It took me few hours how to get this to work | |
| // Have a service account in GCP which wanted to use Admin SDK with Google Workspace | |
| // The service account needs to have the following role: `roles/iam.serviceAccountTokenCreator` | |
| // You need to create a domain wide delegation for the service account client id | |
| import ( | |
| "google.golang.org/api/impersonate" | |
| "google.golang.org/api/option" | |
| "context" | |
| ) |
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
| ### colored and fuzzy go doc | |
| if which bat > /dev/null; then | |
| function _godoc() { | |
| if echo $1|grep -q -E "^([a-zA-Z0-9/]+)$"; then | |
| go doc ${@} | bat -p -l md | |
| elif echo $1|grep -q -E "^[a-zA-Z0-9/]+\.[a-zA-Z0-9.]+$"; then | |
| go doc ${@} | bat -p -l go | |
| elif echo $1|grep -q -E "^([a-zA-Z0-9/._-]+)/.*\.[a-zA-Z0-9.]+$"; then | |
| go doc ${@} | bat -p -l go | |
| else |
NewerOlder