Skip to content

Instantly share code, notes, and snippets.

@itcaat
itcaat / htoprc
Last active September 24, 2025 17:31
~/.config/htop/htoprc
# mkdir -p ~/.config/htop && [ -f ~/.config/htop/htoprc ] && mv ~/.config/htop/htoprc ~/.config/htop/htoprc.bak.$(date +%Y%m%d%H%M%S); curl -fsSL "https://gist.github.com/itcaat/45ea5994d66378fc4bd647cab860a05f/raw" -o ~/.config/htop/htoprc && htop
screen_tabs=1
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=111
sort_direction=1
tree_sort_key=1
tree_sort_direction=1
hide_kernel_threads=1
hide_userland_threads=1
@itcaat
itcaat / scanner_cve_k8s.sh
Created February 17, 2025 08:06
This script automates vulnerability scanning in a Kubernetes cluster by analyzing container images and detecting security issues. Key Features: 🔹 Prompts for a scan name (default: current date and time) and stores results in a separate directory. 🔹 Checks the active Kubernetes context and asks for confirmation before proceeding. 🔹 Asks for a nam…
#!/bin/bash
# Step 0: Ask for scan name (default: current date & time)
DEFAULT_SCAN_NAME=$(date +"%Y-%m-%d_%H-%M-%S")
read -p "Enter a name for this scan (leave empty for default: $DEFAULT_SCAN_NAME): " SCAN_NAME
SCAN_NAME=${SCAN_NAME:-$DEFAULT_SCAN_NAME}
# Create scan directory
SCAN_DIR="scans/$SCAN_NAME"
mkdir -p "$SCAN_DIR"