gpg --import simonemms-public-key.asc
gpg --list-key
// Bind an environment variable to a Cobra CLI argument | |
func bindEnv(key string, defaultValue ...any) { | |
envvarName := strings.Replace(key, "-", "_", -1) | |
envvarName = strings.ToUpper(envvarName) | |
err := viper.BindEnv(key, envvarName) | |
cobra.CheckErr(err) | |
for _, val := range defaultValue { | |
viper.SetDefault(key, val) |
#!/bin/bash | |
### | |
# Run curl -fsSL https://gist.githubusercontent.com/mrsimonemms/9286989ff14a35d890d1386581e058f3/raw/f59d1613062154c6ad6fca81a7a12d30291da6d3/secrets.json | bash | |
### | |
set -e | |
SAVE_TO="${SAVE_TO:-./tmp/secrets}" |
#!/bin/bash | |
# Extract secrets from all namespaces | |
kubectl get secrets -A --field-selector=type=kubernetes.io/tls -o json | jq -r '.items[]' | yq -p=json | |
# Extract secrets from a single namespace | |
kubectl get secrets -n default --field-selector=type=kubernetes.io/tls -o json | jq -r '.items[]' | yq -p=json |
package main | |
import ( | |
"fmt" | |
"go/types" | |
) | |
func Is[T types.Type](v types.Type) bool { | |
_, ok := v.(T) | |
return ok |
#!/bin/bash | |
# Save this script to a `gitpod-installer` file, make it | |
# executable and save to your $PATH directory. Now you can | |
# use this as you would the normal Installer binary. | |
# | |
# To change the Installer version, apply a `GITPOD_INSTALLER_VERSION` | |
# environment variable (or change the default value). | |
set -euo pipefail |
# Replace $DOMAIN with your own domain | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: gitpod | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/ssl-passthrough: "true" | |
spec: |
http: | |
port: 9999 | |
admin: | |
port: 9876 | |
host: 0.0.0.0 | |
apiEndpoints: | |
# see: http://www.express-gateway.io/docs/configuration/gateway.config.yml/apiEndpoints | |
api: | |
paths: | |
- /api/v1/apiary |
const { promises: fs } = require('fs'); | |
/** | |
* Get Secret | |
* | |
* Get a secret | |
* | |
* @link https://docs.openfaas.com/reference/secrets/#use-the-secret-in-your-function | |
* @param {string} secretName | |
* @returns {Promise<string>} |
2020/07/29 09:34:44 [DEBUG] azurerm_data_factory_dataset_delimited_text.example apply errored, but we're indicating that via the Error pointer rather than returning it: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset | |
2020/07/29 09:34:44 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset | |
2020/07/29 09:34:44 [ERROR] <root>: eval: *terraform.EvalSequence, err: One of `http_server_location`, `blob_storage_location` must be specified to create a DataFactory Delimited Text Dataset |