- Save a plaintext
filename.mobileconfig
file that enforces your desired settings - Create a self-signed certificate using Keychain Access
- Certificate Type:
Code Signing
- Certificate Type:
- Sign the plaintext
filename.mobileconfig
asfilename-signed.mobileconfig
/usr/bin/security cms -S -N "<Code Signing Certificate Name Here>" -i "filename.mobileconfig" -o "filename-signed.mobileconfig"
- Click the
Upload
button on your JSS Configuration Prifiles Page to upload your signedfilename-signed.mobileconfig
- Jamf states the uploaded configuration profile is in read-only mode, because it is signed
- Use Jamf to scope the configuration profile to your desired Macs
View ListWorkSpacesUsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws workspaces describe-workspaces --region <RegionNameHere> --query 'Workspaces[*].UserName' --profile <ProfileNameHere> |
View Safari.mobileconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDisplayName</key> | |
<string>Safari</string> | |
<key>PayloadIdentifier</key> |
View macOS-dark-mode.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (prefers-color-scheme: dark) { | |
body { | |
color: #ddd; | |
background-color: #222; | |
} | |
} |
View youtube-channels-to-plex.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/path/to/youtube-dl --playlist-reverse --download-archive /path/to/download-archive.txt -i -o "%(uploader)s/%(playlist)s/%(playlist)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --add-metadata --write-thumbnail --batch-file=/path/to/channel_list.txt | |
exit 0 |
View allowKernelExtension.scpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" to click at {750, 450} |
View renameByCreationDate.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exiftool '-filename<CreateDate' -d %F_%H-%M-%S%%-c.%%le -r /path/to/directory/containing/image/files |
View signMobileconfigFiles.md
View applyPasswordPolicy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
########################################################################################################## | |
## Pupose: Create a pwpolicy XML file based upon variables and options included below. | |
## Policy is applied and then file gets deleted. Use "sudo pwpolicy -u <user> -getaccountpolicies" | |
## to see it, and "sudo pwpolicy -u <user> -clearaccountpolicies" to clear it. | |
## | |
## Usage: Only edit the variables in the Variable flowerbox below. | |
## Run as a policy from Casper, or standalone as root. | |
## | |
## Tested on: OS X 10.10 and 10.11 |
View resetPrintingSystem.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop CUPS | |
launchctl stop org.cups.cupsd | |
# Backup the InstalledPrinters plist | |
if [ -e "/Library/Printers/InstalledPrinters.plist" ] | |
then | |
mv /Library/Printers/InstalledPrinters.plist /Library/Printers/InstalledPrinters.plist.bak | |
fi |
View resetNetworkConfig.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
to_remove=( | |
"/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist" | |
"/Library/Preferences/SystemConfiguration/com.apple.network.identification.plist" | |
"/Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist" | |
"/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist" | |
"/Library/Preferences/SystemConfiguration/preferences.plist" | |
) |
NewerOlder