Skip to content

Instantly share code, notes, and snippets.

@dzogrim
dzogrim / local_net_status.sh
Created April 18, 2026 12:16
Lightweight on-demand monitoring tool for local network devices.
#!/usr/bin/env bash
#
# local_net_status.sh
#
# Lightweight on-demand monitoring tool for local network devices.
#
# Checks:
# - Connectivity (ping)
# - Service availability (SSH, HTTP/HTTPS)
# - Internet reachability (local + via devices)
@dzogrim
dzogrim / sanitize_env_aliases.sh
Created March 31, 2026 14:06
Analyze shell aliases and detect those pointing to non-installed commands
#!/usr/bin/env bash
#
# sanitize_env_aliases.sh
#
# Analyze shell aliases and detect those pointing to non-installed commands.
#
# This script is typically used when enabling GRC (Generic Colourizer)
# on macOS systems, where many Linux-oriented aliases may be auto-created
# but not actually available on the system.
#
@dzogrim
dzogrim / projects-ansible-wrapper.sh
Last active March 29, 2026 08:30
Interactive wrapper for ansible-playbook using dialog
#!/usr/bin/env bash
#
# Interactive Ansible wrapper (dialog-based UI)
#
# --------------------------------------------------------
# Overview
# --------------------------------------------------------
# This script provides an interactive interface for running
# ansible-playbook with dynamic tag selection and safe execution.
#
@dzogrim
dzogrim / clean-up-aliases.sh
Created March 17, 2026 10:33
macOS Finder Alias to POSIX Symlink Converter
#!/usr/bin/env bash
set -u
IFS=$'\n\t'
# ==============================================================================
# clean-up-aliases.sh — macOS Finder Alias → POSIX Symlink Converter
# ==============================================================================
#
# DESCRIPTION
# ——————————————————————————
@dzogrim
dzogrim / server_macos_legacy_audit.sh
Created March 8, 2026 13:26
macOS Server Audit Script & Migration Bundle Export (legacy)
#!/usr/bin/env bash
#
# macOS Server Audit Script
# ------------------------------------------------------------
# Purpose
# Generate a comprehensive audit snapshot of a macOS server.
#
# Designed for:
# • server migration
# • incident investigation
@dzogrim
dzogrim / macports-services-auto.sh
Created February 23, 2026 16:23
MacPorts un/load (launchd) service management
#!/usr/bin/env bash
# macports-services-auto.sh
#
# MacPorts (launchd) service management with:
# - Two inventory modes:
# 1) 'present':
# services actually loadable now (plists present on disk)
# 2) 'known':
# services known to launchd (may include stale/residual entries)
# - An exhaustive union mode (present + known)
@dzogrim
dzogrim / passwordGeneration2.sh
Created February 13, 2026 14:06
This tool provides controlled, portable, reproducible, dependency-free secure password generation for production environments
#!/bin/sh
# passwordGeneration — portable POSIX version
# Version: 2.0
# Why use this script instead of:
# openssl rand -hex 32
# gpg --armor --gen-random 0 "$((100 * 3/4))" | cut -c -50
#
# Advantages:
@dzogrim
dzogrim / cross-filter-inventory.sh
Created December 2, 2025 15:17
This custom script compares and filters two related inventory CSV files.
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# cross-filter-inventory.sh
# -----------------------------------------------------------------------------
# Description:
# This custom script compares and filters two related inventory CSV files:
# 1) An anonymized "updates" CSV (e.g.: inventory-anon-updates.csv)
# 2) A confidential detailed inventory CSV (e.g.: inventory-detailed.csv)
#
# It filters out:
@dzogrim
dzogrim / linkedin_export_parser_sweeper.py
Last active December 2, 2025 11:17
Outil CLI conçu pour analyser, filtrer et nettoyer vos interactions publiques à partir de l’export CSV fourni par LinkedIn
#!/usr/bin/env python3
# linkedin_export_parser_sweeper.py
# Version 0.2 – 2025-12-02
#
# CLI tool designed to parse, filter, and clean up your public LinkedIn
# interactions (comments, reactions, shares) based on the official CSV data
# export. Provides interactive triage, persistent SQLite-based whitelist/
# blacklist, and semi-automated comment removal through Safari integration.
#
# (c) 2025 dzogrim
@dzogrim
dzogrim / fedora42-live-fwupd-tty.ks
Last active November 12, 2025 16:04
Kickstart Fedora 42 x86_64 minimal TTY Live hybrid ISO for firmware on/offline updates (fwupd)
# SPDX-License-Identifier: MIT
#version=DEVEL
# Fedora 42 x86_64 minimal TTY Live hybrid ISO for firmware on/offline updates (fwupd)
#
# Purpose (what this ISO is for)
# - Text-only (TTY) Fedora 42 Live ISO to run firmware updates with fwupd.
# - Works online (LVFS over HTTPS) or offline using a restored cache.
# - Boots on UEFI and BIOS/legacy.
# - No GUI (nmcli only). Wi-Fi supported.
# - Persistence supported via an ext4 partition labeled 'overlay' on the USB stick.