Skip to content

Instantly share code, notes, and snippets.

View jfiliceatcsumb's full-sized avatar

Jason Filice jfiliceatcsumb

  • CSUMB
  • 00:30 (UTC -07:00)
View GitHub Profile
@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
@rocketman-pat
rocketman-pat / ListAllFileVaultEnabledUsersJamfEAScript.md
Last active July 24, 2025 00:11
Jamf EA Script for RCC's List All FileVault Enabled Users Tool

This script:

  1. Checks if the Rocketman tool is installed.
  2. Retrieves the backdoor admin username from a managed preferences plist file and uses it to fetch the password from the keychain via Rocketman.
  3. Handles potential errors during password retrieval, providing specific error messages for different scenarios (e.g., no password set, unknown errors).
  4. Returns the result in a format suitable for Jamf Pro inventory data.
#!/bin/zsh

# Define the username of the backdoor admin account
@talkingmoose
talkingmoose / Re-enroll computers for LAPS.zsh
Last active April 17, 2026 20:19
Use a Jamf Pro policy to re-enroll a computer to install a LAPS management account, and then create a launch daemon and script to update inventory immediately.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Technical Enablement Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/9f4638932df28c4bebde5dd47be1812a
@talkingmoose
talkingmoose / Monterey-compatible Macs (regex).txt
Last active February 5, 2023 18:45
Regex looks for all Mac models compatible with macOS Monterey. May not be up-to-date with newly released models.
Model information: https://support.apple.com/en-us/HT212551
Published Date: June 24, 2022
Verification: https://regex101.com/r/OozSRv/9
1) Regex matches major identifier — Matches major model identifier numbers based on Apple's knowledge base article (more accurate):
(^Mac1[34]|MacBook(10|9)|MacBookAir(10|[7-9])|Macmini[7-9]|MacPro[6-7]|iMacPro1|iMac(1[6-9]|2[0-2])),\d|MacBookPro1(1,[45]|[2-8],\d)
2) Regex matches current or higher — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof).
@talkingmoose
talkingmoose / MegaPKGr.zsh
Last active August 16, 2025 01:51
The pkgbuild binary and Jamf Composer don't support adding single files of 8 GB or more to a package. Some apps like Install macOS Big Sur.app include files larger than 8 GB in their bundles. This script will create a deployable PKG file from apps whose bundles include those large files.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
[email protected]
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0
@talkingmoose
talkingmoose / Send Jamf Pro Command via API.sh
Created March 8, 2019 13:22
Sample script for sending a remote management command to multple Macs via the Jamf Pro API.
#!/bin/bash
# server connection information
URL="https://talkingmoose.jamfcloud.com"
userName="api-editor"
password="P@55w0rd"
command="EnableRemoteDesktop" # or "DisableRemoteDesktop"
# XML data to upload
THExml="<computer_command>