Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Neil Martin neilmartin83

🎯
Focusing
Block or report user

Report or block neilmartin83

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mbpserialcheck.sh
#!/bin/bash
# Check a list of serial numbers for eligibility in the 2015 MacBook Pro battery replacement recall
# Returns only eligible serial numbers
# The text file must be formatted with Unix (LF) line breaks
#
# Usage: mbpserialcheck.sh /path/to/inputfile.txt
#
# To output directly to a CSV file: mbpserialcheck.sh /path/to/inputfile.txt > /path/to/outputfile.csv
#
View ServiceConfig.xml
<config>
<panel>
<name>AppsPanel</name>
<visible>false</visible>
</panel>
<panel>
<name>FilesPanel</name>
<masked>true</masked>
<visible>false</visible>
</panel>
View eset_endpoint_antivirus_install.sh
#!/bin/bash
# Variables - edit to suit your environment
# Path to the ESET Endpoint Antivirus installer package file
pkgpath="/path/to/installer.pkg"
# Path to exported settings file you wish to import
settingsfile="/path/to/eset_settings"
# Set the variable below to "replace" if you are going to apply your own user settings to the ESET GUI (e.g. notifications/alerts)
replaceguicfg="yes"
# Path to the directory containing your custom ESET user GUI configuration
View System - Time Server - Set Defaults.mobileconfig
<?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>PayloadContent</key>
<dict>
<key>com.apple.MCX</key>
View install-from-dmg-example.sh
#!/bin/bash
## mount the segmented DMG
hdiutil attach "/var/tmp/segmented-dmg.dmg"
## run the vendor's installer and do other stuff below this line
exit 0
View System - SecureToken Dialog Bypass.mobileconfig
<?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>PayloadContent</key>
<dict>
<key>com.apple.MCX</key>
View SystemCenterEndpointProtection.json
{"publisher": "Microsoft", "currentVersion": "4.5.32.0", "requirements": [{"operator": "is", "and": true, "type": "recon", "name": "Application Bundle ID", "value": "com.microsoft.app.scep_gui"}], "name": "System Center Endpoint Protection", "appName": "System Center Endpoint Protection.app", "lastModified": "2018-05-05T13:14:45Z", "patches": [{"releaseDate": "2018-03-01T11:26:06Z", "killApps": [{"appName": "System Center Endpoint Protection.app", "bundleId": "com.microsoft.app.scep_gui"}], "version": "4.5.32.0", "components": [{"version": "4.5.32.0", "name": "System Center Endpoint Protection", "criteria": [{"operator": "is", "and": true, "type": "recon", "name": "Application Bundle ID", "value": "com.microsoft.app.scep_gui"}, {"operator": "is", "type": "recon", "name": "Application Version", "value": "4.5.32.0"}]}], "standalone": true, "minimumOperatingSystem": "10.5.0", "dependencies": [], "reboot": false, "capabilities": [{"operator": "greater than or equal", "type": "recon", "name": "Operating System Ver
View Microsoft SCEP - Enable Realtime Protection.sh
#!/bin/bash
/Applications/System\ Center\ Endpoint\ Protection.app/Contents/MacOS/scep_set --section fac --set='action_av = "scan"'
sleep 1
launchctl unload /Library/LaunchDaemons/com.microsoft.scep_daemon.plist
sleep 1
launchctl load /Library/LaunchDaemons/com.microsoft.scep_daemon.plist
exit 0
View Microsoft SCEP - Realtime Protection Status.sh
#!/bin/bash
status=$(/Applications/System\ Center\ Endpoint\ Protection.app/Contents/MacOS/scep_daemon --status | grep RTPStatus | cut -d '=' -f 2)
echo "<result>$status</result>"
exit 0
View com.NT-Ware.UniFLOWMacClient.plist
<?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>Label</key>
<string>com.NT-Ware.UniFLOWMacClient</string>
<key>Program</key>
<string>/Applications/UniFLOW/MacClient.app/Contents/MacOS/MacClient</string>
<key>RunAtLoad</key>
<true/>
You can’t perform that action at this time.