Skip to content

Instantly share code, notes, and snippets.

@olberger
olberger / cas-get.sh
Last active June 21, 2023 14:15 — forked from mgrRaf/cas-get.sh
Works better with curl -L for redirections and POST parameter is execution instead of lt
#!/bin/bash
# Uncomment to debug:
#set -x
# Latest version at https://gist.github.com/olberger/4327fb94ca557e4ba58c0314d9c6f740, forked off from https://gist.github.com/mgrRaf/3432c0a189d7e7d48f9980b634f7b21e
# Usage: cas-get.sh {url} {username} {password} # If you have any errors try removing the redirects to get more information
# The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method)
DEST="$1"
#!/bin/bash
# Usage: cas-get.sh {url} {username} {password} # If you have any errors try removing the redirects to get more information
# The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method)
DEST="$1"
ENCODED_DEST=`echo "$DEST" | perl -p -e 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg' | sed 's/%2E/./g' | sed 's/%0A//g'`
#IP Addresses or hostnames are fine here
CAS_HOSTNAME=galaxy:9143

Running Kata Containers in Minikube

minikube is an easy way to try out a kubernetes (k8s) cluster locally. It utilises running a single node k8s stack in a local VM.

Kata Containers is an OCI compatible container runtime that runs container workloads inside VMs.

Wouldn't it be nice if you could use kata under minikube to get an easy out of the box experience to try out Kata? Well, turns out with a little bit of config and setup that is already supported, you can!

@olberger
olberger / gen-webid-cert.sh
Last active January 14, 2018 17:15 — forked from njh/_README.md
Fix syntax problem for PKCS12 generation prompt
#!/bin/sh
#
# gen-webid-cert.sh: WebID Self-signed Certificate Generator
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.