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
https://github.com/google/go-containerregistry - Go library and CLIs for working with container registries | |
https://github.com/google/crfs - CRFS: Container Registry Filesystem | |
https://github.com/knative/serving - Kubernetes-based serverless | |
https://github.com/apex/up - Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS | |
https://github.com/meteatamel/knative-tutorial - Knative Tutorial | |
https://medium.com/google-cloud/hands-on-knative-part-1-f2d5ce89944e - Knative Tutorial |
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
+ 01 Bootcamp: https://kubernetesbootcamp.github.io/kubernetes-bootcamp/ | |
+ 02 Services: https://kubernetes.io/docs/concepts/services-networking/service/#headless-services | |
+ 03 Best Practices: https://www.weave.works/blog/kubernetes-best-practices | |
https://www.youtube.com/watch?v=BznjDNxp4Hs | |
/ 04 Concepts: https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/ |
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
// the empty struct consumes zero bytes | |
// see: https://dave.cheney.net/2014/03/25/the-empty-struct | |
// see: https://github.com/bradfitz/iter | |
package main | |
import ( | |
"fmt" | |
"strconv" | |
"unsafe" |
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
https://youtu.be/HyznrdDSSGM |
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
find . -type f | xargs zcat | jq -r '.Records[] | select(.eventSource=="ec2.amazonaws.com" and .eventName=="RunInstances") | .userIdentity.principalId + " " + .responseElements.instancesSet.items[].instanceId' |
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
rundll32.exe keymgr.dll,KRShowKeyMgr |
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
kubectl create secret generic slack-token --from-file=./slack-token | |
https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret-using-kubectl-create-secret |
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
{ | |
s1: "aaa", | |
s2: "aÃa", | |
want: 1, | |
expectError: false, | |
}, | |
{ | |
s1: "aáa", | |
s2: "aãa", | |
want: 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
Hi! Welcome! | |
Please consider some hints: | |
1. You should remove all stub comments. | |
2. Write your own godoc-style comments for package and function. Comments should be full sentences ending at period '.': | |
``` | |
// Package foo does bla. | |
package foo |
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 | |
env_is_prod() { | |
local instance_id=$(ec2-metadata -i | cut -d ' ' -f2) | |
local tag=$(aws ec2 describe-tags --region sa-east-1 --filter "resource-type=instance" --filter "Name=resource-id,Values=$instance_id" | jq - | |
r '.Tags[] | select(.Key=="env" and .Value=="prod")') | |
[ -n "$tag" ] | |
} | |
if env_is_prod; then |