This file contains hidden or 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 | |
# Downloads the latest TeamViewer Host package, effectively going to | |
# get.teamviewer.com/YOURCUSTOMHOSTURL in a browser. | |
######################################################## | |
LOGFILE="/Library/Logs/TeamViewerInstall.log" | |
DOWNLOADDIR="/Users/Shared" | |
# Ex. 12, 13, or 14 | |
MAJORVERSION="13" |
This file contains hidden or 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 | |
# | |
# Script for running automated backups for Snipe-IT Docker containers and removing old backups | |
# | |
# Mean to be used as part of a crontab | |
# | |
# Limits its search for backups to clean up to those in the 'BACKUP_DIR' folder, so | |
# you can create folders in this location to keep any manual backups for historical purposes | |
# |
This file contains hidden or 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 | |
ATTR="com.TeamViewer.ConfigurationId" | |
CONFIG_ID="<your_custom_config_id>" | |
TVHOST="/Applications/TeamViewerHost.app" | |
STATUS=$(/usr/bin/xattr -l "$TVHOST") | |
# If no extended attribute present, write it | |
if [ "$STATUS" = "" ]; then | |
/bin/echo "Writing TeamViewer Host configuration ID ..." |
This file contains hidden or 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>BookmarkBarEnabled</key> | |
<true/> | |
<key>HomepageIsNewTabPage</key> | |
<false/> | |
<key>HomepageLocation</key> | |
<string>https://www.mastersny.org</string> |
This file contains hidden or 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>ExtensionSettings</key> | |
<dict> | |
<!-- uBlock Origin --> | |
<key>cjpalhdlnbpafiamejdnhcphjbkeiagm</key> | |
<dict> | |
<key>installation_mode</key> |
This file contains hidden or 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 | |
# Determine loginwindow processes running and reboot the machine if | |
# more than 1 is detected. | |
USER=$(/usr/sbin/scutil <<< "show State:/Users/ConsoleUser" | /usr/bin/awk -F': ' '/[[:space:]]+Name[[:space:]]:/ { if ( $2 != "loginwindow" ) { print $2 }}') | |
# Searches for loginwindow processes and calculates the number running | |
LOGIN_PROCESSES=$(/usr/bin/pgrep loginwindow) | |
COUNTLOGINS=$(/bin/echo "$LOGIN_PROCESSES" | /usr/bin/wc -l | /usr/bin/sed 's/ //g') | |
LOG="/Library/Logs/ForceReboot.log" |
This file contains hidden or 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 | |
# Use the built-in ipp2ppd tool to create a PPD file for AirPrint | |
PRINTER_IP="ENTER_PRINTER_IP" | |
PPD="/etc/cups/ppd/PRINTER_NAME.ppd" | |
EXE="/System/Library/Printers/Libraries/ipp2ppd" | |
AIR_PPD="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/AirPrint.ppd" | |
# Create the PPD file |
This file contains hidden or 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 | |
# Per https://docs.wiris.com/en/mathtype/mathtype_desktop/network_administrators_manual?s%5B%5D=silent&s%5B%5D=installation#macos | |
EMAIL="[email protected]" | |
# Path to MathTypeLib | |
EXE_PATH="/Applications/MathType/System/MathTypeLib" | |
# MathType 7 product key | |
KEY="XXXXX-YYYYY-ZZZZZ-AAAAA-BBBBB" |
This file contains hidden or 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 | |
# MathType 7 license uninstall | |
APP_DIR="/Applications/MathType" | |
APP="${APP_DIR}/MathType.app" | |
EXE_PATH="${APP_DIR}/System/MathTypeLib" | |
PLIST="${APP}/Contents/Info.plist" | |
# Dummy receipt | |
RECEIPT="/Library/Receipts/.MathType7" |
This file contains hidden or 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>AttentionPrefBundleIDs</key> | |
<dict/> | |
<key>PayloadDisplayName</key> |