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
while read in | |
do | |
docker pull "$in" | |
repo=$(echo $in | cut -f1 -d/) | |
image_tmp=$(echo $in | cut -f2 -d/) | |
image=$(echo $image_tmp | cut -f1 -d:) | |
tag=$(echo $image_tmp | cut -f2 -d:) | |
docker images --digests | grep "$image" | grep "$repo" | grep "$tag" | awk '{print "| " $1 ":" $2 " | " $3 " |"}' | sed 's/| //g' | sed 's/ |//g' >> rancher-images-digests.txt | |
docker rmi "$in" | |
done < rancher-images.txt |
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
#!/bin/bash | |
#set -x | |
#set -e | |
# Run with: k3dStart test | |
# This will remove and recreate a k3s cluster named test | |
[[ -z "$1" ]] && { echo "You must specify a cluster name" ; exit 1; } | |
name=$1 |
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
#!/bin/bash | |
check_instance_type="m5.large" | |
product_description="Linux/UNIX" | |
echo > instance-types.csv | |
echo "Getting list of Availability Zones" | |
all_regions=$(aws ec2 describe-regions --region us-east-1 --output text --query 'Regions[*].[RegionName]' | sort) | |
all_az=() | |
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 python | |
import json | |
import urllib2 | |
running = True | |
hdr = { 'User-Agent' : 'Someone is browsing reddit on their console' } | |
print "`exit` exits" | |
while running: | |
sub = str(raw_input("Enter a subreddit: ")) |