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
# 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 | |
--- |
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 -x | |
###---------------------------------------------------------------------------- | |
### FUNCTIONS | |
###---------------------------------------------------------------------------- | |
function pMsg() { | |
theMessage="$1" | |
printf '%s\n' "$theMessage" | |
} |
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 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 |
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
# 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] |
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
// create a 'reciever' function | |
// this construct establishes methods on the variables we create | |
//----------------------------------------------------------------------------- | |
// 'cards' is a reference to the main.go/main variable: (presently instantiated) cards | |
func (cards deck) print() { | |
for index, card := range cards { | |
fmt.Println(index, card) | |
} | |
} |
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 | |
# PURPOSE: Given a repo and chart name this script will check to see if the | |
# chart is installed, if not it installs the chart, else it will | |
# display Helm deployment info. | |
# ----------------------------------------------------------------------------- | |
# PREREQS: a) Helm is installed | |
# b) The target repo has been added | |
# c) | |
# ----------------------------------------------------------------------------- | |
# EXECUTE: |
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 | |
myFile='/tmp/file.yaml' | |
if ! grep thing $myFile; then | |
echo "adding thing!" | |
# code to add thing | |
else | |
echo "thing already exists" # no-op, report only | |
fi |
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
# Enter these commands into the shell | |
# Minimally, you'll give a name and email address to begin: | |
git config --global user.name "fName lName" | |
git config --global user.email "[email protected]" | |
git config --global core.editor vim | |
git config --global color.ui true | |
git config --global push.default matching | |
# Dump logs to stdOut and add an alias to see them in reverse: |
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
#------------------------------------------------------------------------------ | |
# FUNCTION: First, nobody should do this. Second, it totally works. This is a | |
# library to print messages in a consistent format. | |
# AUTHORS: todd-dsm | |
#------------------------------------------------------------------------------ | |
###---------------------------------------------------------------------------- | |
### VARIABLES | |
###---------------------------------------------------------------------------- |
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
# ssh-keygen -t rsa -b 4096 -f /tmp/id_rsa -C "disposable key" | |
-----BEGIN OPENSSH PRIVATE KEY----- | |
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn | |
NhAAAAAwEAAQAAAgEA6CVApa/seMAN7yh4yg3hOuRdgmAxbx5qgrE0VZ63/nzKTRZtz3Co | |
lpmMg9tvRhQa+RKJRNh4Bs1Gn3gvSlxSzRD+c8C6fpTSdB4hcx7QvnI85FQWLvIIjHPIj3 | |
yf58xjz212WscwfsDVXyjUaYx6JfnG+Z/JuVG6MwYVPAGpQn5xHkEtfo69LWWx3ohNQrJH | |
0M7gUiki+2mi08Jn+fpgXgGJmyLPEI5luy3jlNTmONu9lkA42fLYJyKQHn2jYtaKgyJSyW | |
kmfLuJhlBQ3kLP2eJ/UjY5954628ARaLkr3fEF7OVVtnIrZUzlQKCwlGh+4jnPnauoui5P | |
vHcgpwpilBKglMo58al6ADtGo5X2ju+/KLcVHRXO8FvrK6OLNZlJ8cQwSAzWWsKNYj4GnA | |
F1RUT/3tXXHANQkeLoKF9E/DXchIjJfeKADCR8kbQ2zvzi73weyhhqdDbi3K3s8SEXbOly |