Skip to content

Instantly share code, notes, and snippets.

@nirabo
nirabo / docker-service-updater
Last active September 28, 2025 09:02
Docker Service Updater - System-wide utility for automated Docker Compose service updates A robust bash script that pulls latest images and recreates containers for any Docker Compose service. Features logging, error handling, dry-run mode, image pruning, and quiet mode perfect for cron jobs. Install to /usr/local/bin/ and use with multiple serv…
#!/bin/bash
#
# Docker Service Updater - System-wide utility for updating Docker Compose services
# Version: 2.0.0
# Author: Your Name
# Last Modified: $(date '+%Y-%m-%d')
# Usage: docker-service-updater [service_directory] [options]
#
set -euo pipefail # Exit on error, undefined vars, pipe failures
{
"name": "Lyuboslav Petrov",
"title": "Full Stack Researcher",
"summary": "Full Stack Researcher with extensive experience in industrial R&D, computer vision, machine learning, and software development.",
"experience": [
{
"company": "Strypes LTD",
"period": "2015-2024",
"positions": [
"Python Developer",
{
"meta": {
"version": "1.0.0",
"last_updated": "2024-01-03"
},
"about": {
"name": "Lyuboslav Petrov",
"role": "Full Stack Researcher",
"skills": [
"Python Development",
#!/bin/ksh -p
# Function to find all JSON files with a specific pattern in a remote directory
find_json_files() {
local remote_dir=$1
local file_pattern=$2
# Find all files matching the pattern within a depth of 3
find "$remote_dir" -maxdepth 3 -type f -name "${file_pattern}.json"
}
#!/bin/ksh
#######################################################################
# Compares two semantic version strings (e.g., "1.2.3" vs "1.3.0")
#
# Arguments:
# $1 - First version string in format "X.Y.Z"
# $2 - Second version string in format "X.Y.Z"
#
# Returns:
--# Main
--Main
function setup()
supportedOrientations(LANDSCAPE_RIGHT)
ver=P4
ver.setup()
end
function draw()