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 | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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
| #!/usr/local/munki/munki-python | |
| import sys | |
| import os | |
| from Foundation import NSDate | |
| from Foundation import NSPredicate | |
| def doComparison(comp_string, obj): | |
| print('Comparison: %s' % comp_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
| #!/usr/bin/python | |
| # | |
| # list_unused_munki_pkgs.py | |
| # Tim Sutton | |
| # | |
| # Simple script to list all Munki pkgs not currently referenced in a specific list | |
| # of catalogs. | |
| # It does not delete anything. | |
| # | |
| # CATALOGS can be modified to a list of catalogs in your repo that should be indexed. |
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
| #!/usr/bin/python | |
| # | |
| # getosversionfromdmg.py | |
| # | |
| # Copyright (c) 2014 The Regents of the University of Michigan | |
| # | |
| # Retrieves the OS version and build from the InstallESD.dmg contained in | |
| # a typical "Install (Mac) OS X <Name>.app" bundle. | |
| # | |
| # To run: |
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
| #!/usr/bin/python | |
| ''' | |
| reposado update notification: reports changed Apple products between repo_sync runs | |
| Checks the current list of updates versus the previous list of updates and | |
| reports on the changes. Run this script after your repo_sync run to see the | |
| changes between syncs. You can then hand this report off in email if you wish. | |
| For example: |
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
| #!/usr/bin/python | |
| # As written, this requires the following: | |
| # - OS X 10.6+ (may not work in 10.10, haven't tested) | |
| # - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
| # - pyObjC (as such, recommended to be used with native OS X python install) | |
| # Only tested and confirmed to work against 10.9.5 | |
| # Run with root |
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
| <?php $this->view('partials/head', array('scripts' => array('clients/client_list.js'))); ?> | |
| <?php //Initialize models needed for the table | |
| new Machine_model; | |
| new Reportdata_model; | |
| new department_model; | |
| ?> | |
| <div class="container"> |
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
| from ctypes import CDLL | |
| loginPF = CDLL('/System/Library/PrivateFrameworks/login.framework/Versions/Current/login') | |
| result = loginPF.SACLockScreenImmediate() |
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
| #!/usr/bin/env python3 | |
| import os, os.path, json, hashlib, subprocess, argparse, sys, stat | |
| BUFFER_SIZE = 65536 | |
| def checksum_directory(source_path, progress=False): | |
| filesystem_details = dict() | |
| # rough guess of how many files are in a directory | |
| # horrible hack with a little fudge | |
| if not os.path.isdir(source_path): |
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
| #!/usr/bin/python | |
| # pylint: disable=C0103, W0612, E1101, E0602, E0611 | |
| # pylint: disable=W0101, W0110, W0141 | |
| ''''Fix 802.1x When Using Config Profiles and EAP-TLS''' | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
| # | |
| # This script will determine the profile ID that was used when | |
| # installing the 802.1x Ethernet Identity preference and make | |
| # a copy of the keychain entry to be used as a user identity preference | |
| # so that any Ethernet can be used when a user is logged in. As of 10.12.3 |
OlderNewer