Skip to content

Instantly share code, notes, and snippets.

[
{
"code": "AD",
"name": "Andorra",
"greeting": "Hola"
},
{
"code": "AE",
"name": "United Arab Emirates",
"greeting": "Marhaba"
1382 2017-04-14 16:33 kubesplain pod.spec.volumeMounts
1383 2017-04-14 16:33 kubesplain pod.spec.volumeMount
1384 2017-04-14 16:35 kubesplain persistentVolume
1385 2017-04-14 16:35 kubesplain persistentVolume.spec
1386 2017-04-14 16:36 kubesplain persistentVolume.spec.accessModes
1423 2017-04-17 11:18 kubesplain job.spec.completions
1573 2017-04-19 15:07 kubesplain --context=pdxnp pod.spec.volumes
1574 2017-04-19 15:08 kubesplain --context=pdxnp pod.spec.volumes.hostPath
1777 2017-04-21 15:24 kubesplain pod.spec.volumes.name
1778 2017-04-21 15:24 kubesplain pod.spec.volumes.hostPath.path
failed: [localhost] (item={u'name': u'calico-cni-plugin', u'url': u'https://github.com/projectcalico/calico-cni/releases/download/v1.10.0/calico', u'source_url': u'https://github.com/projectcalico/calico-cni/releases/download/v1.10.0/calico', u'dest': u'calico/bin/calico', u'version': u'v1.10.0', u'mode': u'0755', u'owner': u'root', u'sha256': u'9a6bd6da267c498a1833117777c069f44f720d23226d8459bada2a0b41cb8258'}) => {"failed": true, "item": {"dest": "calico/bin/calico", "mode": "0755", "name": "calico-cni-plugin", "owner": "root", "sha256": "9a6bd6da267c498a1833117777c069f44f720d23226d8459bada2a0b41cb8258", "source_url": "https://github.com/projectcalico/calico-cni/releases/download/v1.10.0/calico", "url": "https://github.com/projectcalico/calico-cni/releases/download/v1.10.0/calico", "version": "v1.10.0"}, "msg": "The checksum for /tmp/calico/bin/calico did not match 9a6bd6da267c498a1833117777c069f44f720d23226d8459bada2a0b41cb8258; it was c72abd0d7ee88376952e43999bcbfa7958171708108bd3f1087c599115350b46."}
fai
@sampowers
sampowers / kube-dns.yaml
Created June 22, 2017 20:14
Install, configure, start minikube
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@sampowers
sampowers / gist:88a69e21dff68a8000f67dcb878aab7c
Created June 13, 2017 06:08
spawns hwclock every minute on a kubernetes cluster, useful for syncing minikube
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: "clock-puncher"
spec:
schedule: '*/1 * * * *'
suspend: false
jobTemplate:
spec:
template:
#!/bin/bash
# Downloads the latest chromedriver url, re-using the data provided by the maven webdriver installer plugin. Depends on jq but not maven.
function chromedriver_linux_64_latest_url () {
curl -s https://raw.githubusercontent.com/webdriverextensions/webdriverextensions-maven-plugin-repository/master/repository-3.0.json \
| jq -r '
[.drivers[]
| select(.name == "chromedriver")
| select(.platform == "linux")
@sampowers
sampowers / climagic_leds.sh
Created October 14, 2015 20:15
fun with leds
#!/bin/sh
function rand { foo=$1; echo $((RANDOM%foo+1)); }
clearled () {
echo 'clear'
echo "CLEAR" | nc -w0 -u lights.climagic.com 45444
}
function setled {
@sampowers
sampowers / devaluate.style
Created February 7, 2015 23:54
windowmaker theme
sam@halebopp /org/fridge/GNUstep/Library/WindowMaker/Themes
127 % cat devaluate.style
{
LargeDisplayFont = "Arial-12:slant=0:weight=80:width=100:pixelsize=24";
HighlightColor = "#525952";
MenuTextExtendSpace = "-1";
FTitleColor = "#f1f1f1";
MenuTitleExtendSpace = "-1";
MenuTextFont = "Arial:slant=0:weight=80:width=100:pixelsize=11";
UTitleBack = (mvgradient, "#000000", "#000000", "#707070");
sam@halebopp /org/fridge/GNUstep/Library/WindowMaker/Themes
127 % cat devaluate.style
{
LargeDisplayFont = "Arial-12:slant=0:weight=80:width=100:pixelsize=24";
HighlightColor = "#525952";
MenuTextExtendSpace = "-1";
FTitleColor = "#f1f1f1";
MenuTitleExtendSpace = "-1";
MenuTextFont = "Arial:slant=0:weight=80:width=100:pixelsize=11";
UTitleBack = (mvgradient, "#000000", "#000000", "#707070");
#!/bin/sh
function rand { foo=$1; echo $((RANDOM%foo+1)); }
function beep {
if [ -z $DISPLAY ]; then
setterm -bfreq $1
else
xset b 100 $1 50
fi