I hereby claim:
- I am cbron on github.
- I am cbron (https://keybase.io/cbron) on keybase.
- I have a public key whose fingerprint is 4A6E 2D30 0300 DF73 F2DE 564A 6735 A286 404C 0A46
To claim this, I am signing this object:
| ## | |
| # Example of User Facing ClusterRole aggregation | |
| # https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles | |
| # | |
| # Note: This demo assumes switching back and forth between two terminal windows. | |
| # It is not a bash script to be run in full. | |
| ## | |
| # Set cluster api-server address manually | |
| server=TODO |
| 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 |
| package integration | |
| import ( | |
| "fmt" | |
| "testing" | |
| "github.com/sclevine/spec" | |
| "github.com/sclevine/spec/report" | |
| ) | |
| func TestObject(t *testing.T) { |
| #!/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 |
| #!/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=() | |
| #!/usr/bin/python | |
| import urllib | |
| import sys | |
| text = sys.argv[1] | |
| encoded = urllib.quote_plus(text) | |
| print encoded | |
I hereby claim:
To claim this, I am signing this object:
| #!/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: ")) |