Skip to content

Instantly share code, notes, and snippets.

View bzub's full-sized avatar

bzub bzub

View GitHub Profile
@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}"

Keybase proof

I hereby claim:

  • I am bzub on github.
  • I am bzub (https://keybase.io/bzub) on keybase.
  • I have a public key whose fingerprint is 52BC 5ECE 98CE 58D2 2FC4 EB5D 22EB A7E1 5614 2976

To claim this, I am signing this object:

@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 / vecty-panic-list-child-3.go
Last active March 7, 2018 18:20
vecty panic with list child (with RenderSkipper workaround)
package main
import (
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
"github.com/gopherjs/vecty/prop"
)
type PageView struct {
@bzub
bzub / vecty-panic-list-child-2.go
Created March 7, 2018 15:15
vecty panic with list child (with *HTML workaround)
package main
import (
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
"github.com/gopherjs/vecty/prop"
)
type PageView struct {
@bzub
bzub / vecty-panic-list-child.go
Last active March 7, 2018 15:08
vecty panic with list child
package main
import (
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
"github.com/gopherjs/vecty/prop"
)
type PageView struct {
@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 / terraform-apply-output.log
Created September 1, 2017 02:52
user_data in terraform apply output with packet provider
packet_device.worker: Creating...
always_pxe: "" => "true"
billing_cycle: "" => "hourly"
created: "" => "<computed>"
facility: "" => "nrt1"
hostname: "" => "worker-01.test.kube-router.io"
ipxe_script_url: "" => "https://raw.githubusercontent.com/cloudnativelabs/pxe/master/packet/coreos-alpha-packet.ipxe"
locked: "" => "<computed>"
network.#: "" => "<computed>"
operating_system: "" => "custom_ipxe"
@bzub
bzub / README.md
Created August 11, 2017 05:17
kube-router with kubeadm - kube-proxy replacement procedure

kube-router with kubeadm

kube-proxy replacement procedure

On the controller node after kubeadm init is complete:

KUBECONFIG=/etc/kubernetes/admin.conf kubectl apply -f kube-router-kubeadm-all-features.yaml
KUBECONFIG=/etc/kubernetes/admin.conf kubectl -n kube-system delete ds kube-proxy
docker run --privileged --net=host gcr.io/google_containers/kube-proxy-amd64:v1.7.3 kube-proxy --cleanup-iptables
@bzub
bzub / NOTES.md
Last active August 6, 2017 22:29
kubernetes test suite notes for kube-router