⤵
- Install https://pngquant.org/
$ brew install pngquant
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>SkipAppearance</key> | |
<true/> | |
<key>SkipCloudSetup</key> | |
<true/> | |
<key>SkipPrivacySetup</key> | |
<true/> |
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |
⤵
$ brew install pngquant
The Privacy Preferences payload is designated by specifying com.apple.TCC.configuration-profile-policy
value as the PayloadType
value.
It controls the settings that are displayed in the ”Privacy” tab of the ”Security & Privacy” pane in System Preferences.
This profile must be delivered via a user approved MDM server.
Availability: Available in macOS 10.14 and later.
In addition to the settings common to all payloads, this payload defines this key:
#!/usr/bin/python | |
""" | |
Removes cached apple updates that are older than 24 hours | |
""" | |
import datetime | |
import os | |
import shutil | |
import sys |
getHexColor = (color) -> | |
return "" unless color | |
return color if /^#/.test(color) | |
rgbValues = getRGBValues(color) | |
hexValues = rgbValues.map(numberToHex) | |
"#" + hexValues.join("") | |
numberToHex = (number) -> | |
"0#{number.toString(16)}".slice(-2).toUpperCase() |
development https://git.heroku.com/xxx.git (fetch)
development https://git.heroku.com/xxx.git (push)
origin git@bitbucket.org:xxx/xxx.git (fetch)
origin git@bitbucket.org:xxx/xxx.git (push)
production https://git.heroku.com/xxx.git (fetch)
production https://git.heroku.com/xxx.git (push)
staging https://git.heroku.com/xxx.git (fetch)
class Logging(object): | |
__name__ = 'logger.info(1)' | |
plist = '/System/Library/Preferences/Logging/Subsystems/' | |
def __init__(__name__, plist, *args, **kwargs): | |
super(getLogger/, self).__init__() | |
logger.info('Input parameters:\n' | |
'accessibility: "{com.apple.Accessibility.plist}"\n' |
# For an alternative method, check out: | |
# https://gist.github.com/pudquick/3ff4278c609ce223ebb4fc300c5edd0f | |
# Note: this method no longer works for Safari 15+ | |
from Foundation import NSBundle, NSClassFromString | |
SafariShared = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/SafariShared.framework') | |
loaded = SafariShared.load() | |
WBSPasswordGeneration = NSClassFromString('WBSPasswordGeneration') | |
CKRecord = NSClassFromString('CKRecord') |
# Hat tip to https://github.com/anders/pwgen for various initial documentation | |
# For an alternative method, check out: | |
# https://gist.github.com/pudquick/8d3dedc337161b187a8a1c9564c83463 | |
import objc | |
from Foundation import NSBundle, NSMutableArray, NSString | |
SecurityFoundation = NSBundle.bundleWithPath_('/System/Library/Frameworks/SecurityFoundation.framework') | |
success = SecurityFoundation.load() |