filename | sha512 hash |
---|
filename | sha512 hash |
---|
filename | sha512 hash |
---|
This file contains 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
module github.com/pfnet-research/nvidia-create-symlinks | |
go 1.19 | |
require ( | |
github.com/NVIDIA/nvidia-container-toolkit v1.12.0-rc.2.0.20230127101129-9fc2c5912242 // indirect | |
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect | |
github.com/fsnotify/fsnotify v1.5.4 // indirect | |
github.com/russross/blackfriday/v2 v2.1.0 // indirect | |
github.com/sirupsen/logrus v1.9.0 // indirect |
filename | sha512 hash |
---|
This file contains 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
$ kubectl create token default >token | |
$ awk -F. '{print $2}' token | |
eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjoxNjYxMTcyMzc2LCJpYXQiOjE2NjExNjg3NzYsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJkZWZhdWx0Iiwic2VydmljZWFjY291bnQiOnsibmFtZSI6ImRlZmF1bHQiLCJ1aWQiOiI3OGZkNjM0MS0yMDUyLTQ5ZjYtOWViZC1hMWY0OTEyODBiMDQifX0sIm5iZiI6MTY2MTE2ODc3Niwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmRlZmF1bHQ6ZGVmYXVsdCJ9 | |
$ awk -F. '{print $2}' token | base64 -d | |
{"aud":["https://kubernetes.default.svc.cluster.local"],"exp":1661172376,"iat":1661168776,"iss":"https://kubernetes.default.svc.cluster.local","kubernetes.io":{"namespace":"default","serviceaccount":{"name":"default","uid":"78fd6341-2052-49f6-9ebd-a1f491280b04"}},"nbf":1661168776,"sub":"system:serviceaccount:default:default"} | |
$ awk -F. '{print $2}' token | base64 -d | jq -r '.exp' | |
1661172376 |
filename | sha512 hash |
---|
This file contains 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
# based on https://github.com/kubermatic/kubeone/issues/1215#issuecomment-992471229 | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: metrics-proxy-config | |
namespace: monitoring | |
data: | |
haproxy.cfg: | | |
defaults | |
mode http |
This file contains 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
#!/usr/bin/env bash | |
set -e -o pipefail; [[ -n "$DEBUG" ]] && set -x | |
curl_opts=(--silent -L) | |
if [[ -n "$PAT" ]]; then | |
curl_opts+=(-H "Authorization: token $PAT") | |
fi | |
cat | while read line; do |
This file contains 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
#!/usr/bin/env bash | |
# This is a strongSwan updown script that allows Docker containers to be | |
# accessed through IPSec VPN on the host. | |
set -e -o pipefail; [[ -n "$DEBUG" ]] && set -x | |
docker_addr_pools=( $(docker system info -f "{{range .DefaultAddressPools}}{{.Base}} {{end}}") ) | |
case "$PLUTO_VERB" in |
NewerOlder