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
def readable_time(seconds): | |
"""Converts a number of seconds to a human-readable time in seconds, minutes, and hours.""" | |
parts = [] | |
if seconds >= 86400: # 1 day | |
days = seconds // 86400 | |
if days == 1: | |
parts.append("{} day".format(int(days))) | |
else: | |
parts.append("{} days".format(int(days))) |
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/autopkg/python | |
import os | |
import plistlib | |
from glob import glob | |
from Foundation import CFPreferencesCopyAppValue | |
# Input keys we don't care about comparing. | |
EXCLUDED_KEYS = ( |
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/autopkg/python | |
# encoding: utf-8 | |
# URLMover | |
# Copyright 2019-2021 Elliot Jordan | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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 | |
# Remove GlobalProtectService keychain item from all users' login keychains. | |
USER_LIST=$(/usr/bin/dscl . -list /Users UniqueID | awk '$2 > 500 {print $1}') | |
for THIS_USER in $USER_LIST; do | |
USER_HOME=$(/usr/bin/dscl . -read "/Users/$THIS_USER" NFSHomeDirectory | awk '{print $2}') | |
USER_KEYCHAIN="$USER_HOME/Library/Keychains/login.keychain-db" | |
if [[ -f "$USER_KEYCHAIN" ]]; then | |
if /usr/bin/security find-generic-password -s "GlobalProtectService" "$USER_KEYCHAIN" &>/dev/null; then | |
/usr/bin/security delete-generic-password -s "GlobalProtectService" "$USER_KEYCHAIN" &>/dev/null | |
echo "Deleted GlobalProtectService item from $THIS_USER login keychain." |
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
Recipe ./aanklewicz-recipes/GameSalad/GameSalad.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/CharlesProxy/CharlesProxy.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/ClipMenu/ClipMenu.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Google PythonAppEngineSDK/GoogleAppEngineLauncher.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Isolator/Isolator.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Pacifist/Pacifist.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Reflector/Reflector.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Sonos/Sonos.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./arubdesu-recipes/Synergy/Synergy.pkg.recipe is eligible for AppPkgCreator. | |
Recipe ./bochoven-recipes/JASP/JASP.pkg.recipe is eligible for AppPkgCreator. |
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
adobeflashplayer.download | |
First commit 2013-08-25 20:54:44 -0700 for ./recipes/AdobeFlashPlayer/AdobeFlashPlayer.download.recipe | |
First commit 2015-01-18 22:52:12 +0000 for ./vmule-recipes/AdobeFlashPlayer/AdobeFlashPlayer.download.recipe | |
affinityphoto.download | |
First commit 2019-09-02 11:58:37 +0200 for ./peterkelm-recipes/Serif/AffinityPhoto.download.recipe | |
First commit 2019-09-05 16:45:32 +0200 for ./faumac-recipes/Affinity Photo/Affinity Photo.download.recipe | |
affinitypublisher.download | |
First commit 2019-09-05 16:45:32 +0200 for ./faumac-recipes/Affinity Publisher/Affinity Publisher.download.recipe |
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 | |
import plistlib | |
from collections import OrderedDict | |
from glob import glob | |
import yaml | |
def represent_ordereddict(dumper, data): | |
value = [] |
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/autopkg/python | |
# encoding: utf-8 | |
# PkgCreator to AppPkgCreator | |
# Copyright 2019-2021 Elliot Jordan | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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
variables: | |
TZ: America/Los_Angeles | |
munkipkg_linting: | |
script: python munkipkg_linting.py |
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 | |
# -*- coding: utf-8 -*- | |
"""This script leverages the jamf-pro-sdk module to remove policies left over | |
from usage of the deprecated Jamf Remote app. | |
""" | |
import re | |
from jamf_pro_sdk import JamfProClient, PromptForCredentials |