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=fixme, line-too-long, missing-docstring, C0103 | |
# Many parts of this were taken from Greg Neagle's COSXIP (https://github.com/munki/createOSXinstallPkg) | |
# No parsing of 'BannedRegexMatchVersion' keys currently because regex is hard. | |
# | |
# Output prints a list of incompatible apps for each major OS X version | |
# with its version and optional file listing of the target app. | |
import plistlib |
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
1Password 2.12.1 ['/Applications/1Password.app', '/Library/InputManagers/1PasswdIM/1PasswdIM.bundle'] | |
3D Weather Globe Screensaver 1.0 ['/Library/Screen Savers/3D Weather Globe Deluxe Edition.saver', '/Library/Screen Savers/3D Weather Globe 2.saver'] | |
ADmitMac 9.0.1 | |
AirDisplay 1.6.3 ['/System/Library/Extensions/AVFrameBuffer.kext', '/System/Library/Extensions/AVVideoCard.kext'] | |
AJA 12.2.1 | |
AJA IOHD Driver 6.0.3 | |
Antidote HD 7.2 | |
App Tamer 2.0.5 | |
AT&T Laptop Connect Card 1.0.4 | |
Avast Mac Security 10.14 |
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 | |
import ctypes, ctypes.util | |
# Import CoreGraphics as a C library, so we can call some private functions | |
c_CoreGraphics = ctypes.CDLL(ctypes.util.find_library('CoreGraphics')) | |
def disable_beam_sync(doDisable): | |
if doDisable: | |
# Disabling beam sync: | |
# 1st: Enable Quartz debug |
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
# You need to add these two lines to your bash environment | |
shopt -s histappend | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" | |
# In most *nix variants, that means adding them to your .bashrc file. | |
# However, on OS X, the default session for Terminal is a login session, | |
# meaning that it doesn't run .bashrc. | |
# As such, you'll need to include these commands into your | |
# .profile or .bash_profile (whichever you have/want). |
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 | |
'''Uses Cocoa classes via PyObjC to set a random desktop picture on all screens. | |
Tested on Mountain Lion and Mavericks. | |
See: | |
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html | |
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html |
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 | |
for log in $(/bin/ls -r /var/log/install.log*); do | |
bzgrep 'Writing receipt' $log | awk '{print $1,$2,$3,$10}' | |
done |
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 | |
# | |
# install a local POP3 server on OSX serving the system mailbox as a POP3 account. | |
# | |
# get pre-compiled OS X binaries of UW's (University of Washington) ipop3d and imapd. | |
cd ~ | |
curl -L -O http://www.macosxguru.net/downloads/localmail.zip | |
unzip localmail.zip |