Skip to content

Instantly share code, notes, and snippets.

View BobyMCbobs's full-sized avatar
🎷
sax for your soul

Caleb Woodbine BobyMCbobs

🎷
sax for your soul
View GitHub Profile
@BobyMCbobs
BobyMCbobs / kubevirt-talos.yaml
Created October 28, 2024 02:18
Attempt at Talos on KubeVirt
---
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: talos
labels:
vm: talos
spec:
dataVolumeTemplates:
- metadata:
@BobyMCbobs
BobyMCbobs / cluster-api-kubevirt-talos.yaml
Created October 23, 2024 21:54
talos-on-kubevirt+cluster-api
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
labels:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
spec:
clusterNetwork:
@BobyMCbobs
BobyMCbobs / tf-debug.log
Created August 22, 2024 21:35
terraform-oci-dynamic-group-resource-creation-failure
oci_identity_dynamic_group.instance_dynamic_group: Creating...
2024-08-23T09:16:37.421+1200 [INFO] Starting apply for oci_identity_dynamic_group.instance_dynamic_group
2024-08-23T09:16:37.422+1200 [DEBUG] oci_identity_dynamic_group.instance_dynamic_group: applying the planned Create change
2024-08-23T09:16:37.422+1200 [INFO] provider.terraform-provider-oci_v6.7.0: 2024/08/23 09:16:37 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp="2024-08-23T09:16:37.422+1200"
2024-08-23T09:16:37.422+1200 [INFO] provider.terraform-provider-oci_v6.7.0: 2024/08/23 09:16:37 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp="2024-08-23T09:16:37.422+1200"
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422666 eventual_consistency.go:332: (pid=91616, gid=39) EcContext.GetEndOfWindow returns <nil>
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422686 asm_arm64.s:1197: Retr
@BobyMCbobs
BobyMCbobs / chainsaw-knative-helloworld-test.yaml
Last active February 20, 2024 01:49
chainsaw-knative-helloworld-test
# Based off of
# https://github.com/knative/serving/blob/main/test/e2e/helloworld_test.go
# TODO
# - request URL and verify response
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
@BobyMCbobs
BobyMCbobs / chainsaw-knative-securedefaults-attempt.yaml
Last active February 16, 2024 01:55
Chainsaw test attempt for Knative with test Secure Defaults
# Based off of
# https://github.com/knative/serving/blob/main/test/e2e/securedefaults/secure_pod_defaults_test.go
# - this is best scoped around a single resource to modify and test
# - modifying the environment, such as through knative configmaps, doesn't seem to work for reverting the change on cleanup
# - securedefault is an alpha feature so mileage may vary but this was a simple looking test to attempt
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
#!ipxe
set STREAM stable
set VERSION 39.20240112.3.0
set INSTALLDEV /dev/sda
set CONFIGURL https://gist.github.com/BobyMCbobs/9fedf0d9726839a3ca35b3e5daab6305/raw/1e63109a108e2e8634453a25918bf7c76c08f894/gistfile1.txt
set BASEURL https://builds.coreos.fedoraproject.org/prod/streams/${STREAM}/builds/${VERSION}/x86_64
kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img coreos.inst.install_dev=${INSTALLDEV} coreos.inst.ignition_url=${CONFIGURL}
{
"ignition": { "version": "3.4.0" },
"systemd": {
"units": [
{
"name": "zincati.service",
"enabled": false
},
],
},
@BobyMCbobs
BobyMCbobs / kubectl-decodesecret
Created July 25, 2023 07:10
A small bash script to tidly base64 decode secrets
#!/bin/bash
POSITIONAL_ARGS=()
NAMESPACE=default
while [[ $# -gt 0 ]]; do
case $1 in
-n|--namespace)
NAMESPACE="$2"
shift # past argument
@BobyMCbobs
BobyMCbobs / yas-org-mode-snippet-reveal
Last active July 19, 2023 08:59
org-mode reveal snippet
# -*- mode: snippet -*-
# name: reveal
# key: <reveal
# --
* LOCAL VARS :noexport:
Local Variables:
eval: (setenv "MULTIPLEX_URL" (or (getenv "MULTIPLEX_URL") "https://reveal-multiplex.rnd-wtf.islive.xyz/"))
eval: (set-variable 'org-re-reveal-root (getenv "MULTIPLEX_URL"))
eval: (set-variable 'org-re-reveal-multiplex-url (getenv "MULTIPLEX_URL"))
@BobyMCbobs
BobyMCbobs / fedora-ws2sb.sh
Last active May 23, 2023 09:35
[proof of concept] Convert Fedora Workstation to Fedora Silverblue
#!/bin/bash
# SUPERCEDED BY
# https://github.com/ublue-os/upgrade-tools
# TODO
# - [ ] take a look at any Linux OS to Silverblue (e.g Ubuntu)
# - [ ] install previous user installed packages as overlay
# - [ ] install previous system Flatpaks