#!/usr/bin/env bash
#
# Name: Utilities
# Author: kleb
# Created: unknown
# Last modified: 2025/07/30
#
# Version: 0.5
#  - Production
#

set -euo pipefail

journalctl --rotate
journalctl --vacuum-time=1s

apt-get autoremove --purge -y
apt-get clean

if command -v docker &>/dev/null; then
    docker image prune -a --filter "until=24h" -f
fi
