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
| { | |
| "registry-mirrors" : [ | |
| "https://cr.yandex/mirror", | |
| "https://dockerhub.timeweb.cloud", | |
| "https://huecker.io", | |
| "https://noohub.ru", | |
| "https://dcr-px.ru", | |
| "https://mirror.gcr.io", | |
| "https://quay.io", | |
| "https://registry.access.redhat.com", |
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
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "properties": { | |
| "node": { | |
| "properties": { | |
| "id": { | |
| "type": "string", | |
| "description": "An opaque node identifier for the Envoy node. This also provides the local\n service node name. It should be set if any of the following features are\n used: :ref:`statsd <arch_overview_statistics>`, :ref:`CDS\n <config_cluster_manager_cds>`, and :ref:`HTTP tracing\n <arch_overview_tracing>`, either in this message or via\n :option:`--service-node`." | |
| }, | |
| "cluster": { |
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
| @MainActor | |
| final class AutocompleteObject: ObservableObject { | |
| let delay: TimeInterval = 0.3 | |
| @Published var suggestions: [String] = [] | |
| init() { | |
| } |
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
| FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16 as builder | |
| ARG TARGETPLATFORM | |
| ARG BUILDPLATFORM | |
| ARG TARGETOS | |
| ARG TARGETARCH | |
| WORKDIR /app/ | |
| ADD . . | |
| RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o yourapplication main.go |
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/sh | |
| # Required on macOS because cctools is marked as broken | |
| export NIXPKGS_ALLOW_BROKEN=1 | |
| nix run -f image.nix -c push | |
| docker run ghcr.io/piperswe/hello |
Installing K3s with the external ("out-of-tree") AWS Cloud Provider
Refer to the upstream project's official documentation for the various pre-requisites. You must have an IAM role with the right permissions attached to your K3s instances, and you must also tag your nodes with a clusterid. Refer to the Rancher documentation for how to do this
Install K3s with the following options:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server \
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/sh | |
| #set -x | |
| EXCLUDEFOLDERNAME=${3:-"node_modules"} | |
| get_realpath () | |
| { | |
| echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")" | |
| } | |
| SEARCHPATH="$(get_realpath ${2:-"${HOME}"})" |
Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):
Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:
curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
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
| class Binary < Formula | |
| desc "" | |
| homepage "" | |
| head do | |
| url "", branch: "main" | |
| depends_on "[email protected]" => :build if build.head? | |
| end |
NewerOlder