This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |