To install a custom package or modify an existing docker image we need to
- run a docker a container from the image we wish to modify
- modify the docker container
- commit the changes to the container as a docker image
- test changes made to image
To install a custom package or modify an existing docker image we need to
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |
#Quick Guide
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
#Extended Guide from http://doc.extensis.com/Font-Management-in-OSX-Best-Practices-Guide.pdf
| {% macro input(name, value, type, attributes) %} | |
| <input name="{{ name }}" type="{{ type }}" value="{{ value }}"{% for attr, value in attributes %} {{ attr }}="{{ value }}"{% endfor %}{% if not attributes.id is defined %} id="{{ name }}"{% endif %}/> | |
| {% endmacro %} | |
| {% macro text(name, value, attributes) %} | |
| {% from _self import input %} | |
| {{ input(name, value, "text", attributes) }} | |
| {% endmacro %} | |
| {% macro password(name, value, attributes) %} |
| #!/bin/bash | |
| # http://blog.strictly-software.com/2013/07/apache-performance-tuning-bash-script.html | |
| echo "Calculate MaxClients by dividing biggest Apache thread by free memory" | |
| if [ -e /etc/debian_version ]; then | |
| APACHE="apache2" | |
| elif [ -e /etc/redhat-release ]; then | |
| APACHE="httpd" | |
| fi | |
| APACHEMEM=$(ps -aylC $APACHE |grep "$APACHE" |awk '{print $8'} |sort -n |tail -n 1) | |
| APACHEMEM=$(expr $APACHEMEM / 1024) |
| #!/bin/bash | |
| <<ABOUT_THIS_SCRIPT | |
| ------------------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e |
| #!/usr/bin/python2.7 | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| Defaults Monitor - tool to sniff defaults keys and values using unified log | |
| to launch use standard python 2.7, eg python2.7 ./defsmon.py | |
| ''' | |
| import os |
| url scheme: | |
| x-apple.systempreferences:com.apple.KEY[.KEY]?SUB-PANE | |
| examples: | |
| x-apple.systempreferences:com.apple.systempreferences.AppleIDSettings?iCloud | |
| x-apple.systempreferences:com.apple.preference.keyboard?Shortcuts | |
| urls: | |
| com.apple.systempreferences.ApplelDSettings |
Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.
To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:
tell application "System Preferences"
set CurrentPane to the id of the current pane
set the clipboard to CurrentPane