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/python | |
# encoding: utf-8 | |
# | |
# Modified from Hannes Juutilainen's check-1012-sierra-compatibility.py | |
# and check-10.8-mountainlion-compatibility.py scripts from | |
# | |
# Hannes Juutilainen <[email protected]> | |
# https://github.com/hjuutilainen/adminscripts | |
# | |
# Modified to return a single condition, `supported_major_os_upgrades`, which is |
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
# In 1.0.50, no user besides the one who installed Spotify will be able to execute it. This means either other users on the system, | |
# or, if Spotify was deployed using any mass-deployment tool or installer package, and is owned by the root user, Spotify will not | |
# launch for anyone. | |
# Dir listing comparisons courtesy of https://github.com/poundbangbash | |
# 1.0.50 | |
$ ls -l /Volumes/Spotify/Spotify.app/Contents/MacOS/ | |
total 63160 | |
-rwxr--r-- 1 homeadmin staff 30076384 Mar 1 13:36 Spotify |
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 -eu | |
# | |
# Run the Sibelius 7.5 sounds installer, which will unpack sample data as well as some metadata, all into | |
# a 'Sibelius Sounds' directory. SOUNDS_SRC in this script points to this directory by default, but | |
# alternatively one could back up the Sibelius Sounds directory to a server and then change SOUNDS_SRC to | |
# that location. | |
# | |
# Note that 'Sibelius Sounds' is the top-level directory, and it contains another directory within with | |
# the same name (alongside 'Libraries'). | |
# |
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 | |
declare -r mbam_helper="/Applications/Malwarebytes Anti-Malware.app/Contents/Library/LaunchServices/com.malwarebytes.HelperTool" | |
declare -r privtools=/Library/PrivilegedHelperTools | |
declare -r launchd_plist=/Library/LaunchDaemons/com.malwarebytes.HelperTool.plist | |
# install helper tool | |
if [ ! -d ${privtools} ]; then | |
/bin/mkdir -p "${privtools}" | |
/bin/chmod 1755 "${privtools}" |
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 | |
# | |
# This postflight script echoes the values of the available | |
# arguments and environmental variables. | |
echo "BEGIN postlight script" | |
echo "$0" | |
echo "$1" | |
echo "$2" |
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/python | |
# pylint: disable=locally-disabled, line-too-long | |
from __future__ import print_function | |
import os | |
import re | |
import sys | |
from glob import glob |
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
require 'digest' | |
require 'tempfile' | |
VMNET_NATD_MD5 = 'e347f5c8d86640af5102852c897e31cc' | |
cask 'vmware-fusion' do | |
version '8.5.3-4696910' | |
sha256 '68d3f5b4379302138f3d1060ec270b960a531e28177f8b30c5431390912b6337' | |
url "https://download3.vmware.com/software/fusion/file/VMware-Fusion-#{version}.dmg" | |
appcast 'https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml', |
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 -eu | |
# This script takes a directory containing flat packages. It expands | |
# them all, uses `xmlstarlet` to edit pkg-info 'version' attribute | |
# to the one given by VERSION, and flattens them back, saving them | |
# as "pkgname-VERSION.pkg" | |
# Use the Unity download assistant to download the packages in a VM | |
# to avoid actually installing them by accident on the machine, and | |
# then run this script. Currently we download: |
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
➜ ~ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.12.1 | |
BuildVersion: 16B2333a | |
➜ ~ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources | |
total 2088 | |
-rwxr-xr-x 1 root wheel 349760 22 Sep 03:48 apfs.util | |
-rwxr-xr-x 1 root wheel 352880 22 Sep 03:48 apfs_invert |
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 | |
# | |
# Dumb script to output an actual diff of a run of Adobe's AUSST software update mirror tool, | |
# which provides no helpful summary of what changed in its last sync operation. It also runs | |
# the command with `time`. | |
# | |
# Requires the 'tree' command, available from your favourite package manager: | |
# | |
# Homebrew: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tree.rb | |
# pkgsrc: https://github.com/joyent/pkgsrc/tree/trunk/sysutils/tree |