Skip to content

Instantly share code, notes, and snippets.

View bzub's full-sized avatar

bzub bzub

View GitHub Profile
@bzub
bzub / 20180819-crostini_sommelier_fix.md
Last active January 24, 2024 12:15
Fix Crostini Wayland/X (sommelier) service

If you can't get X11 or Wayland GUI Linux apps to start anymore on Chrome OS, try the following.

In the Terminal app, this will show the status of your systemd user services/units:

systemctl --user

If sommelier@0.service and sommelier-x@0.service show a failed status, the following worked for me:

sudo ln -s /opt/google/cros-containers/bin/sommelier.elf /usr/bin/
@bzub
bzub / talos_sidero_siderolink_notes.md
Last active January 18, 2023 16:22
Talos + Sidero + SideroLink Notes
@bzub
bzub / sidero_hacks.md
Created September 15, 2022 12:03
Sideo Hacks

Sidero Hacks

Delete Cluster, Keep PKI

You just need to keep the CLUSTER_NAME-ca and CLUSTER_NAME-talos secrets around.

To do this you an remove the owner reference from them.

cluster_name="example-cluster"
@bzub
bzub / build.sh
Created November 30, 2018 18:03
IWD/DBUS OCI container build script using pacstrap (Arch Linux)
#!/usr/bin/env sh
set -e
set -x
# Boilerplate setup
alias buildah="sudo buildah"
container="$(buildah from scratch)"
alias run="buildah run ${container}"
alias copy="buildah copy ${container}"
alias add="buildah add ${container}"
@bzub
bzub / kube-router-cfg.yaml
Last active January 19, 2022 20:52
kubeadm kube-router troubleshooting
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-router-cfg
namespace: kube-system
labels:
tier: node
k8s-app: kube-router
data:
cni-conf.json: |
@bzub
bzub / nothing.yaml
Created March 14, 2021 01:53
nothing
# nothing
@bzub
bzub / flatcar_firecracker.sh
Created March 8, 2020 17:33
Flatcar Linux via Flatcar
#!/usr/bin/env sh
set -e
command="${1}"
usage="${0} start|stop"
if [ -z "${command}" ]; then
echo "ERROR: command argument required. [start|stop]"
echo "${usage}"
exit 1
@bzub
bzub / test.json
Created October 5, 2017 14:50
CoreOS Ignition + OEM
{
"ignition": {
"config": {},
"timeouts": {},
"version": "2.1.0"
},
"networkd": {},
"passwd": {},
"storage": {
"files": [{
@bzub
bzub / merge2_test.go
Last active January 10, 2020 21:37
use deepfield for associative key checck
{`nested associative -- add same name, different path`,
`
kind: Deployment
volumes:
- name: vol1
projected:
sources:
- secret:
name: source1
optional: false
@bzub
bzub / main.go
Created January 9, 2020 16:27
kyaml: projected volume source sequence key
package main
import (
"fmt"
"os"
"sigs.k8s.io/kustomize/kyaml/yaml"
)
func main() {