Skip to content

Instantly share code, notes, and snippets.

View jandubois's full-sized avatar

Jan Dubois jandubois

  • Rancher Labs @ SUSE
  • Vancouver, BC, Canada
  • X @jandubois
View GitHub Profile
@jandubois
jandubois / idiomatic_go_v2.md
Created August 5, 2025 23:54
Idiomatic Go Programming Guide 2025+ - Gold Standard Edition

Idiomatic Go Programming Guide 2025+ - Gold Standard Edition

"Go is about making software engineering more effective, not just making programmers more productive." - The Go Team

Target Go Version: Go 1.24+ (Latest Stable: Go 1.24.5 released July 8, 2025 - Go 1.25 expected August 2025)


Executive Summary

@jandubois
jandubois / fleet.yaml
Last active June 30, 2025 20:58
Deploy Fleet with sample repo
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: fleet-crd
namespace: kube-system
spec:
repo: https://rancher.github.io/fleet-helm-charts/
chart: fleet-crd
targetNamespace: cattle-fleet-system
@jandubois
jandubois / Dockerfile
Created October 9, 2018 18:24
splatform/bosh-cli
FROM ubuntu:16.04
# Don't run mesg unless we have a tty; otherwise we'll get a warning from `docker run ... bash -l -c ...`
RUN perl -i -pe 's/mesg n/tty -s && mesg n/' /root/.profile
# Install packages for building ruby
RUN apt-get update
RUN apt-get install -y --force-yes \
build-essential curl git sudo zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev unzip vim
@jandubois
jandubois / asciinema.pl
Created April 18, 2017 17:07
Post-process asciinema recordings to reduce replay time
#!/usr/bin/env perl
use strict;
use warnings;
# Shorten video by limiting the max wait time
my $max_pause = 1;
# To make interactive commands more noticable, insert a longer delay
# after lines with a command prompt.
my $prompt = qr/jan\@zuze/;
$ cat .buildpacks
nodejs_buildpack
php_buildpack
$ cf push multi
Starting app multi in org hpe / space myspace as admin...
[...]
Staging...
=====> Locating Admin Buildpack: nodejs_buildpack
=====> Detected Framework: node.js 1.5.8