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 | |
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" |
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
#!/usr/bin/env bash | |
CLIENT_ID="_FALCON_API_CLIENT_ID_" | |
CLIENT_SECRET="FALCON_API_CLIENT_SECRET_" | |
CID="_FALCON_CID_" | |
TOKEN="_FALCON_INSTALL_TOKEN" | |
API_HOST="api.eu-1.crowdstrike.com" | |
function main() { |
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
APP=TeamsFixer | |
mkdir -vp ${APP}.app/Contents/MacOS ${APP}.app/Contents/Resources | |
PATH="$PATH:/usr/libexec" | |
printf '#!/usr/bin/env bash\nexec /Applications/Microsoft\ Teams.app/Contents/MacOS/Teams --disable-gpu' > ${APP}.app/Contents/MacOS/${APP} | |
chmod +x ${APP}.app/Contents/MacOS/${APP} | |
cp /Applications/Microsoft\ Teams.app/Contents/Resources/icon.icns ${APP}.app/Contents/Resources/icon.icns | |
PlistBuddy ${APP}.app/Contents/Info.plist -c "add CFBundleDisplayName string ${APP}" | |
PlistBuddy ${APP}.app/Contents/Info.plist -c "add CFBundleIconFile string icon.icns" | |
PlistBuddy ${APP}.app/Contents/version.plist -c "add ProjectName string ${APP}" | |
find ${APP}.app |
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 | |
# | |
# Determines the state of Gatekeeper on OSX 10.8 and 10.9. Differentiates between three modes: | |
# | |
# - Mac App Store | |
# - Mac App Store and identified developers | |
# - Anywhere | |
# | |
# DEV_REQ_[12] are certificate requirements stored in the SystemPolicy sqlite database. | |
# Each certificate requirement is disabled/enabled persuant to the 'disabled' field in |