This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"theme": "onepage" | |
}, | |
"basics": { | |
"name": "John Buhay", | |
"label": "Staff Site Reliability Engineer", | |
"image": "https://avatars.githubusercontent.com/u/6697003?v=4", | |
"summary": "Staff Site Reliability Engineer with 16 years of experience implementing Information Technology solutions for organizations in the real-estate and health care sectors. Nine years of experience operating and deploying diverse workloads on Kubernetes, with a focus on Cloud Native Computing Foundation (CNCF) technologies. Committed to orchestrating detailed planning and harnessing technology as a strategic driver to optimize costs, while simultaneously championing business continuity, leading technology transformation, and facilitating modernization efforts.", | |
"website": "https://johnbuhay.github.io", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"svg_id": "radar", | |
"width": 1450, | |
"height": 1000, | |
"colors": { | |
"background": "#fff", | |
"grid": "#bbb", | |
"inactive": "#ddd" | |
}, | |
"title": "My Radar", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://play.golang.org/p/gHUzTTE-IUy | |
// write a function that prints either True of False | |
// # depending on whether its only argument, a string, is a | |
// # palindrome | |
// # | |
// # racecar == racecar : True | |
// # johnbuhay == yahubnhoj : False | |
// # tacocat == tacocat : True | |
// # noon == noon : True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
[ -z "$1" ] && exit 1 | |
[ -z "$2" ] && exit 2 | |
AWS_PROFILE=$1 aws-iam-authenticator token -i $2 | jq -M '.status' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Requires=docker.service coreos-metadata.service | |
After=docker.service coreos-metadata.service | |
[Service] | |
Restart=always | |
EnvironmentFile=/etc/os-release | |
EnvironmentFile=/run/metadata/coreos | |
ExecStartPre=-/usr/bin/docker stop datadog | |
ExecStartPre=-/usr/bin/docker rm -f datadog | |
ExecStartPre=/usr/bin/docker pull datadog/agent:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat `which helm` | |
#!/usr/bin/env bash | |
set -x | |
docker run --rm \ | |
-e KUBECONFIG=${KUBECONFIG//$HOME/\/root} \ | |
-v ~/.kube:/root/.kube/:ro \ | |
-v ~/.helm:/root/.helm/:rw \ | |
helm "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file is used to name this gist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# checks and defaults | |
SWARM_JAR="$JENKINS_HOME"/swarm-client-"$SWARM_VERSION".jar | |
[ -z "$SWARM_MASTER" ] && echo "SWARM_MASTER was not specified, enabling autodiscovery" | |
[ -z "$SWARM_NAME" ] && SWARM_NAME="$HOSTNAME" | |
[ -z "$SWARM_DESCRIPTION" ] && SWARM_DESCRIPTION="Swarm version: $SWARM_VERSION - Jenkins slave for docker jobs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
# this is technically Jenkins Job Dsl | |
version = 1 | |
job('example') { | |
publishers { | |
configure { node -> | |
node / 'publishers' << 'hudson.plugins.doclinks.DocLinksPublisher' {} | |
node / 'publishers' / 'hudson.plugins.doclinks.DocLinksPublisher' << 'documents' {} | |
node / 'publishers' / 'hudson.plugins.doclinks.DocLinksPublisher' / 'documents' << 'hudson.plugins.doclinks.Document' { |
NewerOlder