Skip to content

Instantly share code, notes, and snippets.

@esummers
esummers / gist:192653a0ea795e64e3ab4e8430b0778c
Created September 4, 2020 14:45
Jamf Custom Settings Schema - macOSLAPS.json
{
"title": "macOSLAPS Settings",
"description": "Preference Domain: edu.psu.macoslaps",
"__version": "1.0",
"__feedback": "josh@psu.edu",
"type": "object",
"options": {
"remove_empty_properties": true
},
"definitions": {
@esummers
esummers / gist:43081236652e85a01eae1b89ca80582c
Created September 4, 2020 14:51
Privileges Jamf json plist
{
"title": "Privileges Preferences",
"description": "JSON for SAP's Privileges Application. https://github.com/SAP/macOS-enterprise-privileges",
"__preferencedomain": "corp.sap.privileges",
"properties": {
"DockToggleTimeout": {
"title": "Admin Rights Timeout",
"description": "Set a fixed timeout, in minutes, for the Dock tile's Toggle Privileges command. After this time, the admin rights are removed and set back to standard user rights. A value of 0 disables the timeout and allows the user to permanently toggle privileges",
"anyOf": [
{
@esummers
esummers / Samba Domain Controller.md
Last active April 20, 2024 18:54
Samba Domain Controller on a Raspberry Pi

Running a Samba 4.x Domain Controller on a Raspberry Pi

If you don't have a Windows server available for testing, a Raspberry Pi makes a great test environment. It works with Mac AD Binding, Apple Enterprise Connect, and the Mac Kerberos SSO Extension.

Configuring a Domain Controller on Rasbian or other Debian-based Linux distribution:

  1. Install Rasbian. Use NOOBS if you are new to Raspberry Pi at https://www.raspberrypi.org/downloads/. Optionally enable SSH or VNC support in Raspbian settings menu to remote in to the machine.

  2. Install Samba and related packages. Some packages may launch setup tools. Skip through the Kerberos configuration with defaults. We will be deleting the Kerberos configuration in a later step.

@esummers
esummers / StencilPreprocessor.swift
Created September 4, 2022 22:17
Use Xcode placeholder templates with Sourcery
#!/usr/bin/swift
//
// StencilPreprocessor.swift
// A simple utility to convert Xcode placeholders to Stencil formatted templates.
//
// The author disclaims copyright to this source file. In place of a legal notice,
// here is a blessing:
//
// * May you do good and not evil.
// * May you find forgiveness for yourself and forgive others.