Skip to content

Instantly share code, notes, and snippets.

View hh's full-sized avatar

Hippie Hacker hh

View GitHub Profile

Issue Reporting Checklist

Instructions

Execute the src blocks one at a time with ctrl-c ctrl-c to ensure that ob-async-org-babel-execute-src-block is used for files with the :async header-arg. If by the end of this file your issue isn’t solved, open an issue on Github with the contents of this file.

@hh
hh / podspec.mkd
Created July 30, 2019 18:36
apisnoop - swagger query - PodSpec

pod spec related kinds

select distinct t.name , p.required , property , param_kind, param_type
from properties p , types t
where (t.name like '%PodSpec' or p.param_kind like '%PodSpec')
-- and p.param_kind like 'io%'
-- and p.required
@hh
hh / bdd-kep.mkd
Last active July 8, 2019 16:12
BDD Markdown KEP
@hh
hh / precisely_broken.sh
Created June 23, 2012 14:46
Try to create a simple precise iso using live-build
LB_DIR=$(mktemp -d -p /run/shm precisely.XXXX)
cd $LB_DIR
apt-get install -y livecd-rootfs
lb config \
--mode ubuntu \
--architecture amd64 \
--distribution precise \
@hh
hh / .xbindkeysrc
Last active August 29, 2018 03:26
Awesome Config
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
@hh
hh / kubeadm-dind.org
Last active August 27, 2018 18:26
Org mode with explorations for APISnoop
@hh
hh / Dockerfile
Last active July 10, 2018 22:36
Patching and Running GitLab with a Custom CI Config Path as a URL
FROM gitlab/gitlab-ce:10.7.3-ce.0
COPY *.patch /opt/gitlab/embedded/service/gitlab-rails/
RUN apt-get update ; apt-get install -y patch
# Allows http urls for .gitlab-ci.yml
# This patch may need some work cleanly apply with recent versions
RUN cd /opt/gitlab/embedded/service/gitlab-rails ; \
patch -p1 < ci_yaml_http.patch
#!/bin/bash
set -x
set -e
MASTER_NODE=$(gcloud compute instances list | grep master | awk '{print $1}')
if echo $1 | grep / ; then
REPO=$(echo $1 | awk -F/ '{print $1}')
KAPP=$(echo $1 | awk -F/ '{print $2}')
fi
kubectl create ns $KAPP
helm install $REPO/$KAPP \
@hh
hh / kapps-charts.org
Last active May 2, 2018 06:05
Simple Charts that use the Kubernetes API

Need to run charts that use service accounts

#+NAME 162 stable 41 incubator 206 total charts

  ls stable | wc -l
  ls incubator | wc -l
echo ===
  ls stable incubator | wc -l