Skip to content

Instantly share code, notes, and snippets.

View ozh's full-sized avatar
🍷
More wine, please.

྅༻ Ǭɀħ ༄༆ཉ ozh

🍷
More wine, please.
View GitHub Profile
@m-radzikowski
m-radzikowski / script-template.sh
Last active July 14, 2025 10:40
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@Ozhcar
Ozhcar / dir_file_renamer.py
Last active April 5, 2021 18:03
For my dad
from PIL import Image, ImageFont, ImageDraw
import glob
import os
import re
import time
""""""
dir_to_watch_name = './to_watch'
watch_every = 10