Skip to content

Instantly share code, notes, and snippets.

@hhoover
hhoover / DockerComposeInstall.md
Last active July 28, 2023 06:09 — forked from deirdre-anderson/DockerComposeInstall.md
Sample Docker Compose for a Kong EE insallation

Local Kong EE Install with Docker-compose

Before

  • Confirm you have Docker and Docker compose installed

  • Create a environment var for you Kong License, KONG_LICENSE_DATA

  • Create a file with your json license

  • Create your environment variable KONG_LICENSE_DATA from the above file

Keybase proof

I hereby claim:

  • I am hhoover on github.
  • I am hhoover (https://keybase.io/hhoover) on keybase.
  • I have a public key ASDl1ogg3yFlRODUriOvywdbPtmPLGx_mU2S9LygNK8MGAo

To claim this, I am signing this object:

function powerline_precmd() {
PS1="$($GOPATH/bin/powerline-go -newline -modules docker,kube,aws,git,venv,ssh,cwd,perms,hg,jobs,exit,root,vgo -error $? -shell zsh -mode flat)"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
html, body {
height: 100%;
}
body {
padding-top: 55px;
display: flex;
text-align: center;
flex-direction: column;
}
@hhoover
hhoover / kind-config.yaml
Created July 31, 2019 17:30
kind configs
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker
@hhoover
hhoover / customize.sh
Created February 23, 2018 03:29
Raspberry Pi K8S disks
#!/bin/bash
set -x
# Localse, uncomment if user-data didn't fix these
export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8
# Set locale to en_US.UTF-8
sudo cp /etc/locale.gen /etc/locale.gen.dist
sudo sed -i -e "/^[^#]/s/^/#/" -e "/en_US.UTF-8/s/^#//" /etc/locale.gen
@hhoover
hhoover / make-ics.py
Last active October 21, 2016 14:58 — forked from dstanek/make-ics.py
Create a personalized iCal for the OpenStack Newton Summit schedule
#!/usr/bin/env python3
# Download https://www.openstack.org/summit/barcelona-2016/summit-schedule/mine/?goback=1
# to mine.html and then run this script. The my.ics can be imported into your
# calendar.
#
# Common problems:
# - i've only tested against my calendar (and got feedback about bugs from others) so
# so you may find the parsing isn't quite right
machine 'mysql-master' do
machine_options ssh_username: 'root',
bootstrap_options: {
key_name: 'id_rsa',
flavor_id: 'onmetal-io1',
image_id: 'd22ea57e-e12e-4a0a-ad6b-680dd676fd7c'
}
recipe 'apt'
recipe 'mysql::server'
tag 'database'
node.set['apt']['compile_time_update'] = true
include_recipe 'apt'
node.set['build-essential']['compile_time'] = true
include_recipe 'build-essential'
chef_gem 'chef-metal' do
version '0.11.2'
action :install
end
case node['recipes']
when 'cookbook::recipe'
take some action
when 'cookbook::other_recipe'
take other action
end