gpg --import simonemms-public-key.ascgpg --list-key| # Save this file in a directory called "pihole". This will then create all the relevant | |
| # data directories under here. | |
| # | |
| # Run with "docker compose up -d" which will create it as a service so loads whenever | |
| # the machine reboots. | |
| # | |
| # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
| services: | |
| pihole: | |
| container_name: pihole |
| services: | |
| # This is your Temporal workflow app - just an example service for demo | |
| workflow: | |
| image: alpine | |
| command: sleep 3600 | |
| depends_on: | |
| temporal: | |
| condition: service_healthy | |
| temporal: |
| // 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 |