Skip to content

Instantly share code, notes, and snippets.

View nirgeier's full-sized avatar

Nir Geier nirgeier

View GitHub Profile
@nirgeier
nirgeier / install.md
Last active December 21, 2025 17:01
Installations
@nirgeier
nirgeier / K8S-AI-Tools.md
Last active December 21, 2025 17:06
K8S-AI-Tools
#!/bin/bash
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --create-namespace
# Exit on error
set -e
CERT_NAME="devbit"
NAMESPACE="lab-ingress-nginx"
#!/bin/bash
# Script to generate ConfigMap definitions for files in a specified directory
# Check if a directory path was provided
if [ $# -ne 2 ]; then
echo "Usage: $0 <source_directory> <configmap_name>"
echo "Example: $0 ./config-files my-app-config"
exit 1
fi
@nirgeier
nirgeier / raftt.sh
Created March 24, 2025 15:41
Run raftt Demo
#!/bin/bash
# OPTIONAL: load .env
RAFTT_SERVER="https://admiral.matrix.raftt.io"
# Install brew raftt
#brew install rafttio/tap/raftt
# Load the colors themes
source <(curl -s https://raw.githubusercontent.com/nirgeier/labs-assets/refs/heads/main/assets/scripts/colors.sh)
@nirgeier
nirgeier / Istio.yaml
Created February 24, 2025 13:36
Istio bookinfo-review
#!/bin/bash
# Verify that k8s is running
kubectl label namespace default istio-injection=enabled
# 1. Install istio
##.....
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.1.0/standard-install.yaml
@nirgeier
nirgeier / Install_docker.sh
Created December 3, 2024 19:00
Install_docker
#!/bin/bash
install_docker (){
OPTIONS=$(whiptail \
--title "Installation Methods" \
--menu "Oron the king" 25 78 16 \
"Docker" "Install Docker" \
"Nachman Was Here" "Nachman" \
"<-- Back" "Exit." \
@nirgeier
nirgeier / daemon.json
Created August 4, 2024 21:20 — forked from paulgwebster-oe/daemon.json
Example Docker daemon.json
{
"api-cors-header": "",
"authorization-plugins": [],
"bip": "",
"bridge": "",
"cgroup-parent": "",
"cluster-store": "",
"cluster-store-opts": {},
"cluster-advertise": "",
"debug": true,
@nirgeier
nirgeier / bash-colors.sh
Last active May 11, 2024 11:44
bash-colors.sh
#!/bin/bash
# Reset
COLOR_OFF='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
@nirgeier
nirgeier / limactl_fix_docker.sh
Last active April 7, 2024 20:44
Fixing limactl mount on MacOs
# Place the file under ~/.lima/_config/override.yaml
cat << EOF > ~/.lima/_config/override.yaml
---
mounts:
- location: "/tmp"
writable: true
- location: "~/"
writable: true
EOF