Skip to content

Instantly share code, notes, and snippets.

View Flower7C3's full-sized avatar
🪲
99 little bugs in the code, take one down, patch it around, 117 little bugs…

Bartłomiej Jakub Kwiatek Flower7C3

🪲
99 little bugs in the code, take one down, patch it around, 117 little bugs…
View GitHub Profile
@Flower7C3
Flower7C3 / blt
Last active June 24, 2024 17:11
On demand tools on Docker
#!/usr/bin/env bash
## save as /usr/local/bin/blt and run `chmod +x /usr/local/bin/blt`
docker run --platform=linux/amd64 --rm --interactive --tty \
-v "$PWD":/app -w /app \
cbcms/blt $@
@Flower7C3
Flower7C3 / wallpaper-crop.sh
Created August 12, 2025 09:48
Wallpaper Crop Script - Automatic creation of wallpapers for vertical layout with aligned centers
#!/usr/bin/env bash
# Wallpaper Crop Script - Automatic creation of wallpapers for vertical layout with aligned centers
# Usage: ./wallpaper-crop.sh <source_image> [--inches external_inches builtin_inches] [--position position]
# Example: ./wallpaper-crop.sh wallpaper.jpg
# Example: ./wallpaper-crop.sh wallpaper.jpg --inches 27 16
# Example: ./wallpaper-crop.sh wallpaper.jpg --inches 27 16 --position center-top
# Function displays help
function show_help() {