Skip to content

Instantly share code, notes, and snippets.

View mdraevich's full-sized avatar
🤍
Stay together with Ukraine

Draevich Matthew mdraevich

🤍
Stay together with Ukraine
View GitHub Profile
@mdraevich
mdraevich / script.sh
Created March 18, 2025 19:33
Clear unused overlay2 layers
#!/bin/bash
# Set the overlay2 directory path
OVERLAY2_DIR="/var/lib/docker/overlay2"
# Get all folders in overlay2
overlay2_folders=$(ls -1 $OVERLAY2_DIR)
# List all Docker objects (images, containers, volumes, etc.)
docker_objects=$(docker ps -aq) # All containers, running or stopped
@mdraevich
mdraevich / README.md
Created January 26, 2024 01:08
Convert ArgoCD CLI app diff to HTML-page (Ubuntu-based image might be required)

This script generates HTML-page from ArgoCD Diff output. You could find it useful for CI/CD by generating HTML-page and putting it to artifacts for future analysis.

To convert the output execute:

argocd app diff YOUR-APPLICATION --revision DESIRED-STATE --refresh | python3 format.py