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
# Type about:restartrequired in the address bar and press Enter. This may prompt a restart while preserving tabs, especially after updates. | |
about:restartrequired |
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
exec 3<>/dev/tcp/redis-stack-service.tenant-redis-stack-service.svc.cluster.local/6379 && echo -e "PING\r\n" >&3 && head -c 12 <&3 | |
# +PONG |
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
vault kv put kv/destination/path @<(vault kv get -format=json kv/origin/path | jq .data.data) | |
# via https://gist.github.com/elasticdog/e82f0b8e63407cbb6af69341cb9d0336?permalink_comment_id=3278492#gistcomment-3278492 |
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
apiVersion: monitoring.coreos.com/v1 | |
kind: Probe | |
metadata: | |
name: tls-probe | |
namespace: monitoring | |
spec: | |
interval: 60s | |
module: http_2xx | |
prober: | |
path: /probe |
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
# Origin: https://colocatedeventsna2023.sched.com/event/1Rj2e | |
kubectl -n preview-apps get secret db-secret -o yaml | \ | |
yq 'del(.metadata.creationTimestamp, .metadata.uid, .metadata.resourceVersion, .metadata.namespace, | |
.metadata.annotations, .metadata.ownerReferences)' | \ | |
kubectl apply --namespace $PR_NUMBER -f - |
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
# A viable hack is to let Helm render the template as a raw string. | |
# Note the opening and closing curly bracket with a backtick: | |
# | |
# Origin: https://github.com/helm/helm/issues/2798#issuecomment-470435015 | |
# | |
# Excerpt from a Prometheus Alertmanager yaml | |
receivers: | |
- name: slack-receiver | |
slack_configs: | |
- text: |- |
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://kwok.sigs.k8s.io/docs/user/kwokctl-platform-specific-binaries/#use-unofficial-binaries | |
KUBE_VERSION="v1.29.0" | |
cat <<EOF >> ~/.kwok/kwok.yaml | |
--- | |
kind: KwokctlConfiguration | |
apiVersion: config.kwok.x-k8s.io/v1alpha1 | |
options: | |
kubeBinaryPrefix: https://github.com/kwok-ci/k8s/releases/download/${KUBE_VERSION}-kwok.0-darwin-arm64 | |
--- | |
EOF |
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
import os | |
import posixpath | |
from urllib.parse import quote as urlquote | |
# Hugo rule https://gohugo.io/functions/urls/urlize/ | |
# | |
# We use a small subset | |
HTML_TEMPLATE = """ |
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 | |
############################################################################### | |
# Copyright (c) 2018 Red Hat Inc | |
# | |
# See the NOTICE file(s) distributed with this work for additional | |
# information regarding copyright ownership. | |
# | |
# This program and the accompanying materials are made available under the | |
# terms of the Eclipse Public License 2.0 which is available at |
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
aws ec2 describe-instances --filters "Name=tag:Name,Values=bill*" --query 'Reservations[].Instances[].[PublicIpAddress,Tags[?Key==`Name`]| [0].Value]' --output text |
NewerOlder