Skip to content

Instantly share code, notes, and snippets.

View jbeda's full-sized avatar
💭
E_TOOMANYRESPONSIBILTIES - Poke me on email/slack/twitter for response.

Joe Beda jbeda

💭
E_TOOMANYRESPONSIBILTIES - Poke me on email/slack/twitter for response.
View GitHub Profile
@jbeda
jbeda / nar-spec.md
Created September 1, 2015 23:04
Nix Archive (NAR) file specification

This is taken directly from Figure 5.2 in http://nixos.org/~eelco/pubs/phd-thesis.pdf. It is presented here to be more directly linkable.

serialise(fso) = str("nix-archive-1") + serialise1(fso)

serialise1(fso) = str("(") + seralise2(fso) + str(")")

serialise2(type=Regular, exec, contents) =
  str("type") + str("regular")
 + (
# This tells kubecfg to read its config from the local directory
export KUBECONFIG=./kubeconfig
# Looking at the cluster
kubectl get nodes
kubectl get pods --namespace=kube-system
# Running a single pod
kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard
kubectl get pods
@jbeda
jbeda / 01 Install Unison Linux
Last active September 8, 2023 07:47
Unison install
# linux
UNISON_VERSION=2.48.4
sudo apt-get -y install inotify-tools ocaml-nox build-essential
curl -L https://github.com/bcpierce00/unison/archive/${UNISON_VERSION}.tar.gz | tar zxv -C /tmp
cd /tmp/unison-${UNISON_VERSION}
sed -i -e 's/GLIBC_SUPPORT_INOTIFY 0/GLIBC_SUPPORT_INOTIFY 1/' src/fsmonitor/linux/inotify_stubs.c
make UISTYLE=text NATIVE=true STATIC=true
cp src/unison src/unison-fsmonitor ~/bin
# You should modify your path to include ~/bin
@jbeda
jbeda / gist:aadf3c144fbe2ad30f2d
Created February 20, 2016 05:21
Rethinking graphviz
NB: This is a stream of consciousness after a minimum of thought. It is possible that the graphviz community has already been over all of this. Please don't take this too seriously.
Graphviz is awesome. It allows you to logically describe a graph and then lay it out.
Graphviz is one of the most frustrating pieces of software I've ever used. It is easy to get everything you *want* in the diagram but increadibly hard to make it actually look the way you imagine it.
The fundamental problem, in my mind, is that there is an unfortunate incosistency around subgraphs. Most of the layout algorithms tend to do global layout when complex diagrams often times require different layout algorithms for different parts of the project.
To fix this I'd do the following:
* Allow true subgraph layout of nodes and edges completely contained in the subgraph. Allow users to easily mix and match layout algorithms in the same diagram.
@jbeda
jbeda / update-centos-7.sh
Last active February 9, 2022 11:50
Install prev kubeadm versions
kubeadm init --use-kubernetes-version=v1.5.6
@jbeda
jbeda / notes.md
Created February 23, 2018 22:43
Notes from TGIK 027
  1. Show kubectl proxy

Things are now locked down by default. Try to upload kubeconfig. Talk certs vs. tokens. Skip login... nothing works.

  1. Let's get UI working!

Option 1: Give UI SA with admin. Don't do this!

@jbeda
jbeda / README.md
Last active August 19, 2021 19:12
Using rollup to bundle modules for copy/paste into cuttle.xyz

Playing around using rollup to bundle things for copy/paste into cuttle.xyz.

npm install
rollup -c

copy/paste bundle.js

@jbeda
jbeda / Zoom Macros.kmmacros
Last active May 2, 2021 17:59
Zoom mute/unmute files
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>582833929.55457795</real>
<key>Macros</key>
@jbeda
jbeda / gist:2cae7dd22a453c3caa94
Last active November 7, 2020 18:26
URLs for kubernetes release artifacts
$ gsutil ls -R gs://kubernetes-release/release/v0.5.4 | sed 's|gs://kubernetes-release|https://storage.googleapis.com/kubernetes-release|; /^.*:$/d; /^$/d'
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-client-darwin-386.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-client-darwin-amd64.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-client-linux-386.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-client-linux-amd64.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-client-linux-arm.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-salt.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes-server-linux-amd64.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/kubernetes.tar.gz
https://storage.googleapis.com/kubernetes-release/release/v0.5.4/bin/darwin/386/kubecfg
# These filters are based on email that Tim Hockin sent to kubernetes-dev a
# while ago on how to bring some sanity to github notifications with Kubernetes.
#
# https://groups.google.com/forum/#!msg/kubernetes-dev/5qU8irU7_tE/aZov0LpCBwAJ
#
# This file can be processed with https://github.com/mesozoic/gmail-yaml-filters
# Mark all k8s email
- match:
any: