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 | |
function version { echo "$@" | awk -F. '{ printf("%d.%d.%d.%d\n", $1,$2,$3,$4); }'; } | |
if [[ -e "$3/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist" ]]; then | |
CURRENT_FLASH_BUILD=`/usr/libexec/PlistBuddy -c "print :CFBundleShortVersionString" "$3/Library/Internet Plug-Ins/Flash Player.plugin/Contents/Info.plist"` | |
XPROTECT_FLASH_BUILD=`/usr/libexec/PlistBuddy -c "print :PlugInBlacklist:10:'com.macromedia.Flash Player.plugin':MinimumPlugInBundleVersion" "$3/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist"` | |
if [[ $(version ${CURRENT_FLASH_BUILD}) < $(version ${XPROTECT_FLASH_BUILD}) ]]; then |
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 | |
#Mount and install the VMware Fusion guest tools using default settings | |
kernel=`uname -s` | |
if [ "${kernel}" == "Linux" ]; then veewee_user="veewee"; elif [ "${kernel}" == "Darwin" ]; then veewee_user="vagrant"; fi | |
echo "**** Our kernel is ${kernel} and our user is ${veewee_user}." | |
if [ $kernel == "Linux" ]; then | |
#Set Linux-specific paths and ISO filename |
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
Advanced Find (Shift-Cmd-F) | |
kMDItemFSSize > size_in_bytes | |
Or, better: | |
kMDItemFSSize > size_in_bytes && kMDItemContentType = com.microsoft.outlook14.event | |
Save as a smart folder, rejoice. |
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
JSON external fact: | |
{ | |
<SNIP> | |
"Conditions": { | |
"arch": "x86_64", | |
"hostname": "XXXXXX.local", | |
"ipv4_address": [ |
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
1.9.3-p362 :001 > require 'facter' | |
=> true | |
1.9.3-p362 :002 > Facter.loadfacts | |
=> [#<Facter::Util::DirectoryLoader:0x007f94f20ce4d0 @directory="/etc/facter/facts.d">, #<Facter::Util::DirectoryLoader:0x007f94f20ce4a8 @directory="/etc/puppetlabs/facter/facts.d">] | |
1.9.3-p362 :003 > Facter.list | |
=> [:cfkey, :architecture, :augeasversion, :kernel, :testing1, :testing2, :lastcheckdate, :packageverificationmode, :daysbetweennotifications, :logfile, :logginglevel, :lastnotifieddate, :lastcheckresult, :suppressusernotification, :installapplesoftwareupdates, :softwarerepourl, :useclientcertificate, :suppressautoinstall, :suppressstopbuttononinstall, :softwareupdateserverurl, :clientidentifier, :applesoftwareupdatesonly, :managedinstalldir, :availablediskspace, :conditions, :consoleuser, :endtime, :errors, :installresults, :installeditems, :itemstoinstall, :itemstoremove, :machineinfo, :managedinstallversion, :managedinstalls, :manifestname, :probleminstalls, :removalresults, :removeditems, :restartrequired, :runtype |
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
managedinstalls = Facter::Util::CFPropertyList.native_types(Facter::Util::CFPropertyList::List.new(:file => "/Library/Preferences/ManagedInstalls.plist").value) | |
managedinstalls.each do |key, val| | |
Facter.add("munki_#{key}") { setcode { val } } | |
end |
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
tell application "Microsoft Outlook" | |
set archiveFolderId to id of folder "Inbox" of folder "On my computer" | |
set theCounter to unread count of mail folder id archiveFolderId | |
set newestMsgId to count of messages in mail folder id archiveFolderId | |
repeat with i from 0 to theCounter | |
set is read of message (newestMsgId - i) of mail folder id archiveFolderId to true | |
end repeat | |
end tell |
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
def getCS5mediaSignature(dirpath): | |
'''Returns the CS5 mediaSignature for an AAMEE CS5 install. | |
dirpath is typically the root of a mounted dmg''' | |
for (path, unused_dirs, unused_files) in os.walk(dirpath): | |
if path.endswith("/payloads"): | |
parentdir = path | |
# now look for setup.xml | |
setupxml = os.path.join(parentdir, "Setup.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
Desktop/Photoshop\ CC/Resources/ | |
├── ASU | |
│ ├── Install.dylib | |
│ │ └── Contents | |
│ │ ├── Dylibs | |
│ │ ├── Frameworks | |
│ │ ├── Info.plist | |
│ │ ├── MacOS | |
│ │ ├── PkgInfo | |
│ │ ├── Resources |
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
/computers/del/entries | |
/computers/del/entry | |
/computers/get/all | |
/computers/get/entry | |
/computers/groups/del/default | |
/computers/groups/del/entry | |
/computers/groups/get/all | |
/computers/groups/get/default | |
/computers/groups/get/entry | |
/computers/groups/new/entry |
OlderNewer