Skip to content

Instantly share code, notes, and snippets.

@tillkahlbrock
tillkahlbrock / cdk-diff
Last active January 27, 2021 13:23
zsh function for using "cdk diff" with CDK Pipelines
function cdk-diff() {
if ! [ -d "cdk.out" ]; then
echo "no 'cdk.out' dir fount. Go to your apps root dir and run 'cdk synth'."
return
fi
stage=$(ls cdk.out | grep 'assembly-' | fzf)
stack=$(ls cdk.out/$stage/*.template.json | sed -E "s|cdk\.out\/${stage}\/(.+)\.template\.json|\1|" | fzf)
echo "npx cdk diff -a cdk.out/${stage} $stack $@"
npx cdk diff -a cdk.out/${stage} $stack $@
}
@tillkahlbrock
tillkahlbrock / convert-deploymentconfig-to-deployment.md
Last active September 22, 2021 12:22 — forked from bmaupin/convert-deploymentconfig-to-deployment.md
Convert OpenShift DeploymentConfig to Kubernetes Deployment
  1. Change apiVersion from:

    - apiVersion: v1

    (or apiVersion: apps.openshift.io/v1)

    to:

#!/bin/bash
for i in `seq 1 10`; do
wget -v https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/28.0.0.zip
sleep 2
done