Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
mrzarquon / gist:3754072
Created September 20, 2012 05:09
rc.local to start puppet from a template
/usr/local/bin/puppet agent -t
chkconfig --level 2345 pe-puppet on
chkconfig --level 2345 pe-mcollective on
/etc/init.d/pe-puppet start
/etc/init.d/pe-mcollective start
@mrzarquon
mrzarquon / gist:3687791
Created September 9, 2012 22:52
Hope you've had a nice flight gary
curiosity:puppet-scripts chris$ sudo ./postflight
looking for Puppet User
<dscl_cmd> DS Error: -14136 (eDSRecordNotFound)
Looking for Puppet Group
<dscl_cmd> DS Error: -14136 (eDSRecordNotFound)
Creating Puppet User (uid: 52) in new Puppet Group (gid: 495)
curiosity:puppet-scripts chris$ sudo ./postflight
looking for Puppet User
dsAttrTypeNative:KerberosKeys:
30820151 a1030201 01a08201 48308201 443072a1 2b3029a0 03020112 a1220420 d671c11e 458153bd c7b7f5ae 51cf303f f2688854 6b361774 23dfe1fa 2acd3f38 a2433041 a0030201 03a13a04 384c4b44 433a5348 41312e35 30363944 44433842 30454545 39333646 30423639 31363234 32343836 43313132 41413443 36304270 75707065 743062a1 1b3019a0 03020111 a1120410 0c21266a 91641731 f69dd50a 03d30d3f a2433041 a0030201 03a13a04 384c4b44 433a5348 41312e35 30363944 44433842 30454545 39333646 30423639 31363234 32343836 43313132 41413443 36304270 75707065 74306aa1 233021a0 03020110 a11a0418 70f77057 64e9859e 6d25ec13 a2bab06d d968a79e 152fb58f a2433041 a0030201 03a13a04 384c4b44 433a5348 4131
defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekKeyboard -bool false
defaults write /Library/Preferences/com.apple.Bluetooth BluetoothAutoSeekPointingDevice -bool false
@mrzarquon
mrzarquon / LazyDrop
Created March 23, 2012 21:02
Quick way to drop a file anywhere with luggage
include /usr/local/share/luggage/luggage.make
TITLE=Jamf_Foo
REVERSE_DOMAIN=org.angrydome
DESTINATIONFOLDER="/Library/Application Support/JAMF/Self Service/Plug-ins/"
FILEPAYLOAD="foobar"
PACKAGE_VERSION=`/usr/bin/git rev-parse --verify HEAD | /usr/bin/cut -c1-10`
PAYLOAD=\
foo