macOS keyboard shortcut favorites
Command (or Cmd) - ⌘
Control (or Ctrl) - ^
Option (or Alt) - ⌥
Shift - ⇧
Fn (Function) - 🌐
| #!/bin/bash | |
| # | |
| # Script to update (add/remove) the existing Computer Static Group from the list of serial numbers. | |
| # Karthikeyan Marappan | |
| # API Role Privileges: Update Static Computer Groups | |
| ###################### CONFIGURABLE VARIABLES ################################ | |
| serialNumberList="$HOME/Desktop/sourceList.txt" # Path to plain text file with serial numbers | |
| Jamf_URL="https://karthikeyan.jamfcloud.com" # Your Jamf Pro URL | |
| Jamf_URL="${Jamf_URL%/}" # Remove trailing slash if present |
| #!/bin/bash | |
| # Extension Attribute (EA) script to inventory software update deferral settings on macOS | |
| # Author: Karthikeyan M | |
| # Optimized Version | |
| # Function to retrieve values from macOS preferences | |
| get_pref() { | |
| osascript -l JavaScript << EOS | |
| ObjC.import('Foundation') | |
| ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess').objectForKey('$1')) |
| https://www.apple.com/macos/macos-sequoia-preview/ | |
| Published Date: June 10, 2024 | |
| Verification: https://regex101.com/r/bNOMXz/2 | |
| 1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
| ^(Mac(1[345]|BookPro1[5-8]|BookAir(9|10)|Pro7)|iMac(Pro1|(19|2[01]))|Macmini[89]),\d+$ | |
| 2) Current or higher regex — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof). |
| #!/bin/zsh | |
| # set -x | |
| :<<ABOUT_THIS_SCRIPT | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Partner Program Manager | |
| Jamf | |
| [email protected] |
| #!/bin/sh | |
| ### | |
| # | |
| # Created : 2022-09-19 | |
| # Last Modified : 2022-11-12 | |
| # Version : 1.2 | |
| # Tested with : macOS 13.0.1 | |
| # | |
| ### |
| #!/bin/bash | |
| XCODE_VERSION="$4" | |
| XCODE_TRIGGER="$5" | |
| XCODE_NAME="Xcode-${XCODE_VERSION}" | |
| XCODE_XIP_CACHE="/Library/Application Support/JAMF/Waiting Room/${XCODE_NAME}.xip.pkg" | |
| XCODE_XIP_PATH="/Library/Management/${XCODE_NAME}.xip" | |
| UNXIP="/Library/Management/Tools/unxip" | |
| LOG_FOLDER="/private/var/log" |
| #!/bin/zsh | |
| # these local accounts will not be removed from admins | |
| # one account name per line; keep the beginning and closing quotes | |
| exceptionsList="talkingmoose | |
| bill.smith | |
| oszein | |
| jamfadmin" |