Skip to content

Instantly share code, notes, and snippets.

@chukaofili
chukaofili / echo-server.yml
Last active October 19, 2021 01:29
Echo Server Deployment
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
@Lirt
Lirt / vbox-mod-sign.sh
Last active February 3, 2019 10:54
Sign VirtualBox kernel modules to run with SecureBoot
#!/usr/bin/env bash
#
# Script for guide:
# https://gorka.eguileor.com/vbox-vmware-in-secureboot-linux-2016-update/
#
# Verification:
# dmesg | grep "EFI:.*cert.*${cert_name}"
#
set -eu
set -o pipefail
@xeoncross
xeoncross / base64.go
Created July 6, 2018 18:21
Base 64 encode and decode a byte array in Golang. https://play.golang.org/p/X4z9zq0nXlW
package main
import (
"fmt"
"encoding/base64"
)
func main() {
str := "Hello, playground :)"
@ernoaapa
ernoaapa / list-failing-pods.sh
Last active June 19, 2024 10:50
Script to list all Kubernetes Pods what are NOT ready
#!/bin/sh
#
# Print Pods which are Pending or not Ready for some reaosn
#
kubectl get pods --all-namespaces -o go-template='{{ range $item := .items }}{{ range .status.conditions }}{{ if (or (and (eq .type "PodScheduled") (eq .status "False")) (and (eq .type "Ready") (eq .status "False"))) }}{{ $item.metadata.name}} {{ end }}{{ end }}{{ end }}'
@aojea
aojea / README.md
Last active July 20, 2025 09:49
upgrade kind kubernetes cluster
@Lirt
Lirt / nginx-proxy-to-alertmanager.yaml
Created May 6, 2021 18:42
Nginx proxy for basic-auth from Loki to AlertManager
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-proxy-to-alertmanager
namespace: kube-system
labels:
app: nginx-proxy-to-alertmanager
group: monitoring
component: loki