You just have to source this file.
View main.tf
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
variable gitlab_url { | |
type = string | |
description = "URL to Gitlab (example: https://gitlab.example.com)" | |
} | |
variable vault_url { | |
type = string | |
description = "URL to Vault (example: https://vault.example.com)" | |
} | |
variable oidc_client_id { | |
type = string |
View .gitlab-ci.yml
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
demo: | |
image: vault:1.6.0 | |
script: | |
- export VAULT_ADDR=https://vault.example.com | |
- export VAULT_TOKEN="$(vault write -field=token auth/gitlab-jwt/login role=read-secret-demo jwt=$CI_JOB_JWT)" | |
- USERNAME="$(vault kv get -field=username kv/demo/hello)" | |
- PASSWORD="$(vault kv get -field=password kv/demo/hello)" | |
- echo "The secret is ${USERNAME}:${PASSWORD}" | |
only: | |
refs: ["master"] |
View multiple-ssh.sh
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
#!/bin/bash | |
first=$1 | |
shift | |
for e in $@; do | |
tmux split-window ssh $e | |
done | |
tmux set-window-option synchronize-panes on |
View list-non-pinging-pods.sh
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
#!/bin/bash | |
PATH="$PATH:/usr/local/bin" | |
kubectl get po --all-namespaces -o wide | head -n 1 | |
for ip in $(kubectl get po --all-namespaces -o "jsonpath={.items[*].status.podIP }"); do | |
ping -c 1 -W 3 $ip > /dev/null | |
[[ $? -gt 0 ]] && kubectl get po --all-namespaces -o wide | awk '$7 == "'$ip'" { print $0 }' | |
done |
View energy.sh
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
#!/bin/bash | |
#### | |
# Configuration | |
#### | |
SOUND_POWERSAVE_BATTERY=1 | |
SOUND_POWERSAVE_AC=0 | |
WIFI_IFNAME="wlp4s0" |
View linux-audio.md
Convert music on Linux
Split a FLAC into small parts with a CUE file :
shnsplit -f CDImage.cue -t %n-%t -o flac CDImage.flac
Remove metadata on FLAC in a directory :