(將於 10 月 1 日完成)
為了活動進行順利,請在出席活動前,確實備妥下列事項。
...
| func SliceUniqMap(s []int) []int { | |
| // @see https://www.reddit.com/r/golang/comments/5ia523/idiomatic_way_to_remove_duplicates_in_a_slice/db6qa2e/ | |
| seen := make(map[int]struct{}, len(s)) | |
| j := 0 | |
| for _, v := range s { | |
| if _, ok := seen[v]; ok { | |
| continue | |
| } | |
| seen[v] = struct{}{} | |
| s[j] = v |
| ########################################################################### | |
| # jvm.options # | |
| # # | |
| # - all flags defined here will be used by cassandra to startup the JVM # | |
| # - one flag should be specified per line # | |
| # - lines that do not start with '-' will be ignored # | |
| # - only static flags are accepted (no variables or parameters) # | |
| # - dynamic flags will be appended to these on cassandra-env # | |
| ########################################################################### |
| apiVersion: eksctl.io/v1alpha5 | |
| kind: ClusterConfig | |
| metadata: | |
| name: eksdemo | |
| region: us-west-2 | |
| nodeGroups: | |
| - name: ng0 | |
| instanceType: t3.medium |
| #!/bin/bash | |
| # | |
| # @see https://github.com/pahud/amazon-eks-workshop/blob/master/00-getting-started/create-eks-with-eksctl.md | |
| # | |
| cleanup() { | |
| rm -rf awscli-bundle | |
| rm -f awscli-bundle.zip | |
| } |
| # | |
| # http static server one-liners | |
| # | |
| FROM busybox:1.30 | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x run.sh |
| --- | |
| # | |
| # Ambassador version: 0.52.0 | |
| # | |
| # Adapted from: https://getambassador.io/yaml/ambassador/ambassador-rbac.yaml | |
| # See: https://www.getambassador.io/user-guide/getting-started/ | |
| # | |
| apiVersion: v1 | |
| kind: Service |
| 1. Install Docker CE and enable Kubernetes: | |
| See Figure 1 and 2 in https://medium.com/slalom-technology/get-kubernetes-running-locally-on-osx-and-windows-b3b5f176b5bb | |
| 2. (Optionally) Install k8s dashboard: | |
| ``` | |
| $ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml | |
| $ kubectl proxy | |
| ``` |
| FROM alpine | |
| VOLUME ["/livecode"] | |
| CMD ["/livecode/hello.sh"] |