Skip to content

Instantly share code, notes, and snippets.

View rbtr's full-sized avatar
🛰️
heat on high until hot

Evan Baker rbtr

🛰️
heat on high until hot
View GitHub Profile
@rbtr
rbtr / docker-compose.sh
Created September 2, 2017 00:04
"docker-compose"-in-container magic
#!/bin/sh
#
# Run docker-compose in a container
#
# This script will attempt to mirror the host paths by using volumes for the
# following paths:
# * $(pwd)
# * $(dirname $COMPOSE_FILE) if it's set
# * $HOME if it's set
#
@rbtr
rbtr / kubectl get nodes --by-age
Created August 27, 2018 16:10
sort kubernetes nodes by age
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime"

Keybase proof

I hereby claim:

  • I am rbtr on github.
  • I am evanbaker (https://keybase.io/evanbaker) on keybase.
  • I have a public key ASBVYGVMRCqF6t6z5xrcxDiYu_vPj-Ct749lCUkpE3yuzwo

To claim this, I am signing this object:

@rbtr
rbtr / heap.go
Created April 4, 2020 22:51
go string heap example
package main
import (
"fmt"
"container/heap"
)
type StringHeap []string
func (h StringHeap) Len() int { return len(h) }