Skip to content

Instantly share code, notes, and snippets.

View Noxsios's full-sized avatar

razzle Noxsios

View GitHub Profile
@Noxsios
Noxsios / flash.md
Last active October 16, 2024 01:42
@Noxsios
Noxsios / simple.test.ts
Created March 27, 2025 15:10
Playwright + KFC
import { expect } from "@playwright/test"
import { test } from "../../../e2e"
import { K8s as k, kind } from "kubernetes-fluent-client"
test("has title", async ({ page, pkg }) => {
await page.goto("/")
const ns = pkg.components.at(0)?.charts?.at(0)?.namespace || ""
expect(ns).toBeTruthy()
@Noxsios
Noxsios / create-doug-user.go
Last active April 8, 2025 22:41
create doug user
// This example is a naive translation of the shell task into Go,
// there are many optimizations + reuse needed before this would be fully accepted as a builtin
// + unit tests
// BuiltinSetupDougUser sets up a doug user in Keycloak
type BuiltinSetupDougUser struct {
KeycloakGroup string `json:"keycloak_group,omitempty" jsonschema:"description=Optional Keycloak group to add the user to"`
}
func (b BuiltinSetupDougUser) Execute(ctx context.Context) error {