Skip to content

Instantly share code, notes, and snippets.

View dgalli1's full-sized avatar

Damian Galli dgalli1

View GitHub Profile
@dgalli1
dgalli1 / .sh
Created November 15, 2023 16:56
Simple update script for docker compose
#!/bin/bash
echo "Now Updating all Docker Containers"
export TZ=UTC # force all timestamps to be in UTC (+00:00 / Z)
printf -v start_date_epoch '%(%s)T'
printf -v start_date_iso8601 '%(%Y-%m-%dT%H:%M:%S+00:00)T' "$start_date_epoch"
# List of all folders that contain a docker compose
declare -a StringArray=("auth-stack" "bitwarden" "languagetool" "media-stack" "monitoring" "" "mosquitto" "portainer" "dnsmasq" "socks5" "nginx-proxy-manager" "filebrowser")
# Iterate the string array using for loop
"""Config flow to configure the Meteo-Swiss integration."""
import logging
import re
from typing import Any
import voluptuous as vol
from hamsclientfork import StationType, meteoSwissClient
from homeassistant import config_entries
from homeassistant.helpers import issue_registry as ir
from homeassistant.helpers.issue_registry import IssueSeverity
@dgalli1
dgalli1 / freecad-git.sh
Last active September 21, 2025 04:17
Create a github Repository For Freecad with string comparision
#!/bin/bash
BASE_DIR="$HOME/git/cad"
# Check if a repository name was provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <repository-name>"
exit 1
fi
@dgalli1
dgalli1 / convert.sh
Created July 19, 2025 14:58
patch pocketbook image
#!/bin/bash
set -euo pipefail
IMG="flash.img"
DEVICE="/dev/sdb"
SERIAL_STRING_OFFSET=0x05B00000
# Your new ASCII serial number
NEW_TEXT_SERIAL="YT4409007156...."