Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Mac Set Up

System Stuff

  • Ensure TRIM is enabled: Use System Profiler and sudo trimforce enable
  • Turn off notification
  • Turn off siri


awei01 /
Created November 19, 2018 17:17 — forked from rudelm/
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file '/etc/auto_master' and add the last line:

# Automounter master map

+auto_master # Use directory service

awei01 /
Created November 4, 2018 19:33
Create Bootable USB from command prompt

Set up Mac OSx Image Management

Some notes for creating and managing Mac OSx images and then distributing them onto client machines via NetRestore

Tested and working on

  • Mac mini (Late 2012)
  • macOS Sierra Version 10.12.6
  • Mac Server Version 5.3.1
  • iMac 21.5" Desktop Intel 3.06 GHz, 4GB DDR3 RAM, 500GB HDD - MB950LL/A
awei01 /
Last active August 8, 2017 19:00 — forked from wrossmck/
Convert Downloaded El to bootable iso
# Maybe use this:
#taken from
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ El\ -noverify -nobrowse -mountpoint /Volumes/install_app
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map

Setup OSX Server

Install OSx Server

  1. Install the Server App from the App store.
  2. Run the server app and choose to run the server from your current machine.


awei01 /
Created August 1, 2017 20:06 — forked from rdpompeo/
Creating an image for NetRestore on macOs Server

Creating NetRestore Image for macOS Sever

  1. Create Partition with clean install of latest mac OS (sierra)
  2. Install/Configure the partition with desired applications, such as firefox or chrome, and files/documents you wish to be included on the image.
  3. Navigate to other partition on the same hard drive

Create .nbi file

  1. Open System Image Utility
  2. Under Source, select the partition you just created and loaded with apps/files.
  3. Follow instructions, make sure to select NetRestore, then the image will start to be created.
function _getInvalidRule (rules, data, value) {
const resolveRuleResult = partial(_resolveRuleResult, [rules, data, value])
const reducer = partial(_reducer, [resolveRuleResult])
return Object.keys(rules).reduce(reducer, Promise.resolve(null))
function _reducer (callback, accumulator, key) {
return pipeP(
sudo /Applications/Install\ macOS\ --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\
Debug network users: