Skip to content

Instantly share code, notes, and snippets.

View Mac Set

Mac Set Up

System Stuff

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


awei01 /
Created Nov 19, 2018 — 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 Nov 4, 2018
Create Bootable USB from command prompt
View Mac OSx Image

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 Aug 8, 2017 — 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
awei01 /
Created Aug 1, 2017 — 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.

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.


View ramda_help.js
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(
View Mac create USB bootable install
sudo /Applications/Install\ macOS\ --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\
Debug network users:
awei01 / defaults.json
Last active Feb 24, 2017
Default sublimetext 3
View defaults.json
// go here to install package control
// install Babel
// install Sass
"always_show_minimap_viewport": true,