Skip to content

Instantly share code, notes, and snippets.

Avatar

Todd Thomas todd-dsm

  • smpl-cloud
View GitHub Profile
@todd-dsm
todd-dsm / list.txt
Created Jan 19, 2022
example gist with index
View list.txt
A1 - foo
B2 - bar
C3 - baz
@todd-dsm
todd-dsm / programs.txt
Created Jan 13, 2022
Required Programs for DevOps Work
View programs.txt
# Some of these programs are target installs; others are installed as dependencies.
# If the purpose of the program is not obvious, it's probably a dependency.
# ---------------------------------------------------------------------------------
autoconf
automake
aws-iam-authenticator
awscli
bash
bazel
bdw-gc
View override-values-all.yaml
---
csi:
daemonSet:
annotations: {}
kubeletRootDir: /var/lib/kubelet
providersDir: /etc/kubernetes/secrets-store-csi-providers
updateStrategy:
maxUnavailable: ""
type: RollingUpdate
debug: false
View override-values-ref.yaml
---
global:
enabled: true
psp:
annotations: |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default,runtime/default
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
seccomp.security.alpha.kubernetes.io/defaultProfileName: runtime/default
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
enable: false
@todd-dsm
todd-dsm / encode-cert.sh
Last active Sep 13, 2021
base64 encode certificate; looking for a single line of output, not a block
View encode-cert.sh
#!/usr/bin/env bash
{ IFS= read -rd '' secretMaterial <'foo-api.pem';} 2>/dev/null
myEncodedCert="$(echo -n "$secretMaterial" | base64)"
echo "$myEncodedCert"
myEncodedCert is displayed in a text block. I need it in a flat line as the "Target" at the bottom.
---
OUTPUT: Actual
@todd-dsm
todd-dsm / environment.zsh
Last active Aug 26, 2021
oh my zsh personal config
View environment.zsh
# ~/.oh-my-zsh/custom/environment.zsh
###############################################################################
### ZSH ###
###############################################################################
# Filesystem Operational Behavior
alias ll='ls --color -l'
alias la='ls --color -al'
alias ld='ls --color -ld'
alias lh='ls --color -alh'
alias cp='cp -rfvp'
@todd-dsm
todd-dsm / tfenv.sh
Last active Nov 15, 2021
tfenv quick setup
View tfenv.sh
# If EXISTING install start here
# Dump the current Terraform binary
brew unlink terraform
brew uninstall terraform
# If NEW install start here
# Install tfenv
brew install tfenv
---
@todd-dsm
todd-dsm / get-pipeline-info.sh
Created Jul 30, 2021
retrieves service account details from kubernetes for the GitLab pipeline
View get-pipeline-info.sh
#!/usr/bin/env bash
#set -x
###----------------------------------------------------------------------------
### FUNCTIONS
###----------------------------------------------------------------------------
function pMsg() {
theMessage="$1"
printf '%s\n' "$theMessage"
}
@todd-dsm
todd-dsm / hosts
Created Jul 23, 2021
download this raw and drop into: ~/.ansible/hosts
View hosts
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
@todd-dsm
todd-dsm / ansible.cfg
Created Jul 23, 2021
Ansible Config File; download raw to: ~/.ansible/ansible.cfg
View ansible.cfg
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]