Skip to content

Instantly share code, notes, and snippets.

View rscottwatson's full-sized avatar

Scott Watson rscottwatson

  • Montreal, Canada
View GitHub Profile
@rscottwatson
rscottwatson / s3upload.sh
Created July 20, 2022 18:18 — forked from ryantbrown/s3upload.sh
Bash script to Upload folder to S3
# Set AWS credentials and S3 paramters
AWS_KEY=""
AWS_SECRET=""
S3_BUCKET=""
S3_BUCKET_PATH="/"
S3_ACL="x-amz-acl:private"
function s3Upload
{
path=$1
@rscottwatson
rscottwatson / README.md
Last active March 16, 2022 17:08
Prepare minikube when using dnscrypt-proxy or dnsmasq on your computer

Using minikube on computer with dnscrypt-proxy or dnsmasq

If you are running these DNS services on your host machine it is likely that DNS won't work from your minikube cluster.

Example of the initial setup

The following command will create a new minikube cluster using the latest version of kubernetes available to our minikube version. This was written with the version of v.1.24.0 installed on my laptop.

# if you already have a minikube cluster named minikube you will need to supply the -p to give a new profile name to each minikube command. 
minikube start --driver=hyperkit 
First authenticate with the github account.
gh auth login
follow the prompts
-- Create our repos
gh repo create argocd-flask-demo-dev \
--description "A sample flask app to test with argocd" \
--gitignore Python \
--public \
@rscottwatson
rscottwatson / gist:eaffe67d838925170f10b47d2d238fbb
Created June 17, 2019 12:27
Build a dictionary in ansible
Comes from https://stackoverflow.com/questions/35605603/using-ansible-set-fact-to-create-a-dictionary-from-register-results
---
# this is just to avoid a call to |default on each iteration
- set_fact:
postconf_d: {}
- name: 'get postfix default configuration'
command: 'postconf -d'
register: command