Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# [KPMG] 2025
: <<'SCRIPT_INFO'
=============================================================================
Homebrew Packages Extension Attribute
=============================================================================
Description: Reports all Homebrew packages and casks installed on the
# =============================================================================
# SWIFTDIALOG CONFIGURATION
# =============================================================================
# Path to swiftDialog binary
DIALOG_BIN="/usr/local/bin/dialog"
# Local image paths for dialog windows (must be readable by root)
MESSAGE_IMAGE1="/Library/Application Support/icons/JC.png"
MESSAGE_IMAGE2="/Library/Application Support/icons/Certs.png"
@RussCollis
RussCollis / Convert *.icns to *.png.sh
Last active July 31, 2025 22:33
Converts all .icns files in a specified folder to .png and deletes the originals
#!/bin/bash
# -----------------------------------------------------------------------------
# Script: convert_icns.sh
# Description: Converts all .icns files in a specified folder to .png and deletes the originals
# Version: 1.3.0
# Last Updated: 2025-07-07
# Author: Russell Collis
# Requirements: sips (macOS native image tool)
# Changelog:
@RussCollis
RussCollis / Icon Extraction.sh
Last active August 8, 2025 14:29
Extracts icons from macOS .app bundles, .pkg installers, and .dmg disk images into PNG format. Logs and summarises extracted, skipped, and missing icons.
#!/bin/bash
# [KPMG] 2025
: <<'SCRIPT_INFO'
=============================================================================
Extract Mac App Icons Script
=============================================================================
Description: Extracts icons from macOS .app bundles, .pkg installers, and
.dmg disk images into PNG format. Logs and summarizes
@RussCollis
RussCollis / Badge Icon.sh
Last active August 18, 2025 10:32
Prompts the user to select a base icon and a badge icon, resizes the badge to 75% of the base icon's width/height, and composites it in the bottom-right corner (with slight offset). The final output is saved to the Desktop and named using the input file names (e.g., Safari_with_BetaBadge.png).
#!/bin/bash
# -----------------------------------------------------------------------------
# Script: Overlay Icon Composer
# Description: Prompts the user to select a base icon and a badge icon,
# resizes the badge to 50% of the base icon's width/height,
# and composites it in the bottom-right corner (with slight offset).
# The final output is saved to the Desktop and named using the
# input file names (e.g., Safari_with_BetaBadge.png).
# Requirements: https://imagemagick.org/script/download.php
#!/bin/bash
##################################################################
# script to set basic user pref access when devices locked down #
# allows access to date and time, power, WiFi and printing #
# all optional #
# if no variables entered nothing will happen! #
##################################################################
allowDateChange="${4}"
allowEnergyChange="${5}"