Skip to content

Instantly share code, notes, and snippets.

@yagosys
yagosys / install k8s on mac
Last active September 15, 2018 10:29
k8s_on_mac
Written with [StackEdit](https://stackedit.io/).
Setup minikube on osx without using virtualbox
1. Virtualbox is ugly , for example if will power off your machine if battery is lower than 5%. since OSX has native hyperkit support for docker. for I want get rid of virtualbox.
3. The logic flow
@yagosys
yagosys / instance-types.sh
Created June 10, 2020 22:59 — forked from trestletech/instance-types.sh
Get all EC2 Instance Types in All Availability Zones
#!/bin/bash
echo "Getting list of Availability Zones"
all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort)
all_az=()
while read -r region; do
az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort)
while read -r az; do