Skip to content

Instantly share code, notes, and snippets.

View digital-michael's full-sized avatar

Digital-Michael digital-michael

View GitHub Profile
@digital-michael
digital-michael / CNC.sh
Last active September 5, 2025 14:19
CNC.sh : Command aNd Control for docker-compose.yml files. Use -h
#!/usr/bin/env bash
# Service manager for docker-compose / podman-compose solutions
set -euo pipefail
# Defaults
COMPOSE_BIN="docker compose" # default
PROFILE="gpu-nvidia" # default profile
# Use the directory name of the compose file as the default project name
COMPOSE_DIR="$(dirname "$(realpath docker-compose.yml)")"
@digital-michael
digital-michael / layout.md
Last active January 16, 2025 15:17
KDE KWin Cascade-Windows script

Installation

  1. download or reference this gist. See ??? below.
  2. Manual terminal work:
cd ~
cd .local/share/kwin/scripts
mkdir -p cascade-windows/contents/code
cd cascade-windows
cp ???/main.js contents/code # where ??? is where ever you downloaded it to from this gist