Skip to content

Instantly share code, notes, and snippets.

@mpata
mpata / boxstarter.ps1
Last active May 21, 2018 12:58 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
# Last Modified: 2018-05-15
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
@mpata
mpata / macos_launchd_keychain.txt
Created March 21, 2017 23:13
Accessing Keychain in a launchd daemon
Problem:
A daemon launched by 'launchd' is only able to access the System Keychain "/Library/Keychains/System.keychain".
Workaround:
Use 'su -l', not very useful for a daemon
Solution:
Set the key 'SessionCreate' to 'True' in your 'launchd' daemon plist file.
How many hours did I lose with this?