Skip to content

Instantly share code, notes, and snippets.

@Tazminia
Tazminia / pods-finder.sh
Created October 16, 2025 08:37
Commands to explore pods and such
# Find pod names, status and image version based on container name, labels and namespace
kubectl get pod --context=cluster --namespace=ns -l app=appLabel -o yaml | \
yq '[
.items[] |
{
"pod": .metadata.name,
"image": (.spec.containers[] | select(.name == "mainContainer") | .image),
"phase": .status.phase
}
]'
@Tazminia
Tazminia / .gitconfig
Created December 12, 2023 15:22
Path based git configuration
######################################
# Content of ~/.gitconfig #
######################################
[includeIf "gitdir:~/personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig-work
######################################
# Content of ~/.gitconfig-personal #
@Tazminia
Tazminia / macos-devops-setup.sh
Last active March 15, 2023 13:56
MacOs initial setup (devops)
# install homebrew, check: https://brew.sh/index_fr
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install oh-my-zsh, check: https://ohmyz.sh/#install
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install oh-my-zsh theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# update theme