Skip to content

Instantly share code, notes, and snippets.

@arubdesu
arubdesu / bash history
Created September 26, 2011 15:27 — forked from acdha/bash history
cut -f1 -d" " < ~/.bash_history | sort | uniq -c | sort -nr | head
my standard user:
59 ping
46 ls
37 su
36 python
35 ssh
29 cd
26 git
21 ./createLionUserSetup.py
20 man
@arubdesu
arubdesu / gist:1720094
Created February 1, 2012 23:18
New SHA1's for InstaDMG/InstaUp2Date's catalog files
OS X Lion Update 10.7.3 http://support.apple.com/downloads/DL1484/en_US/MacOSXUpdCombo10.7.3.dmg sha1:07dfce300f6801eb63d9ac13e0bec84e1862a16c
iTunes 10.5.3 http://appldnld.apple.com/iTunes10/041-3779.20120119.Bgty5/iTunes10.5.3.dmg sha1:f27c4e65282f92726aae28d8759dbe4334c7f7ea
OS X Lion Server Update 10.7.3 http://support.apple.com/downloads/DL1487/en_US/MacOSXServerUpdCombo10.7.3.dmg sha1:2c87824f09734499ea166ea0617a3ac21ecf832b
AirPort Utility 6.0 http://support.apple.com/downloads/DL1483/en_US/AirPortUtility6.0.dmg sha1:4e58a9e1af3ddefce843e49ef4b3f36c9c79793a
# All iLife '11 pkg's in order
# PLEASE NOTICE -
# iLife '11 requires 10.6.3, but not all packages in the installer are necessary for 10.6.6
# FOLLOW THESE INSTRUCTIONS FOR PREPARATION -
# mount the iLife disc
# right-click iLife.pkg alias and choose 'show original'
# copy all pkgs into your instadmg/InstallerFiles/InstaUp2DatePackages folder except for:
# -AppleIntermediateCodec
# -iLifeAudioAnalysis
# -iLifeRegistrationPost
@arubdesu
arubdesu / piccconfMunki.txt
Created February 11, 2012 16:26
Mac Image Deployment and Patch Management with Munki
Mac Image Deployment and Patch Management with Munki
An open source project with a lot of steam and community support behind it, Munki (munki.googlecode.com) is a project that provides SysAdmins managing Macs with patch management that presents a user-friendly interface to end users. Requiring light infrastructure and minimal bootstrapping time, Munki can also be utilized to ensure software and settings are present when new machines are deployed. It can be made responsible for enforcing security updates in a timely fashion, uninstalling software when those licenses would be better utilized elsewhere, and yet is also versatile enough to enable self-service opt-in for customers who'd prefer to be allowed to choose from approved software (even persnickety Adobe products).
We'll discuss the pull philosophy that allows this to more easily scale, and the license management gains of having the installed state of workstations documented centrally.
@arubdesu
arubdesu / #packageApocalypse
Created March 25, 2012 20:58
A relaxing Sunday afternoon
/keepClean/instadmg/AddOns/InstaUp2Date/instaUp2Date.py 10.5_vanilla 10.6_vanilla 10.7_vanilla 10.7_server iLife09_updates iLife11_updates iWork09_updates
Parsing the catalog files for 10.5_vanilla
Mac OS X 10.5.8 Combo Update
iTunes 10.5.3
AirPort Client Update 2009-001
Front Row Update 2.1.7
iLife Support 9.0.4
QuickTime 7.7 for Leopard
AirPort Utility 5.5.3
@arubdesu
arubdesu / 10.8_vanilla.catalog
Created December 15, 2012 20:16
Yeah, I'll check this into svn soon... Happy Holidays!🎁
Installer Disc Builds: 12A269, 12B19, 12C60
Output Volume Name: Macintosh HD
Output File Name: 10.8_vanilla
OS Updates:
# We're assuming you're using the newest 10.8.2 build 12C60 as your install 'media', otherwise you'll need to track down the combo updater and the supplemental update
# You may not want java for your build, but:
Java for OS X 2012-006 http://support.apple.com/downloads/DL1572/en_US/JavaForOSX.dmg sha1:eff777cdc39b4e3336b3477f60e8ad769ded8532
iTunes11.0.1 http://appldnld.apple.com/iTunes11/041-8973.20121213.T1fc2/iTunes11.0.1.dmg sha1:83e703e3ab604fdc1f8eba492e153f4d81c5e94f
@arubdesu
arubdesu / Makefile
Created February 18, 2013 23:24
Temp hack to workaround munkibuilds.org clearing off of more-than 20 front-page downloads
${MUNKIFILE}:
curl -o $@ http://munkibuilds.org/${MUNKI_VERSION}/$@
curldsize=`du $@ | cut -f 1` ; minsize=10
@if [ ${curldsize} -lt ${minsize} ]; then rm -f $@ && curl -o $@ http://munkibuilds.org/%20older/${MUNKI_VERSION}/$@; fi
hdiutil verify "$@" || (rm -f "$@" ; exit 1)
@arubdesu
arubdesu / Makefile
Last active December 17, 2015 17:09
Crashplan pre-install/pre-seed setup luggage makefile
include /usr/local/share/luggage/luggage.make
TITLE=crashplanCustomizer
REVERSE_DOMAIN=com.318.crashplanCustomizer.pkg
PAYLOAD=prep-CrashPlan \
pack-CrashPlan-Custom
prep-CrashPlan: l_Library_Application_Support
@sudo mkdir -p ${WORK_D}/Library/Application\ Support/CrashPlan/.custom
pack-CrashPlan-Custom: prep-CrashPlan custom/
@arubdesu
arubdesu / autopkgRecipes.txt
Last active December 22, 2015 20:59
make Monday and Friday smoother - only run autopkg EOD mon-tues-wed so canaries test mid-week
AdobeFlashPlayer.munki
AdobeReader.munki
Firefox.munki
MSOffice2011Updates.munki
OracleJava7.munki
Silverlight.munki
VLC.munki
XQuartz.munki
munkitools.munki
MakeCatalogs.munki
@arubdesu
arubdesu / gist:6719745
Created September 26, 2013 20:01
straight from DeployStudio's /Applications/Utilities/DeployStudio\ Admin.app/Contents/Frameworks/DSCore.framework/Versions/A/Resources/Tools/Common/ds_auto_enroll/ds_auto_enroll.sh
#!/bin/sh
# disable history characters
histchars=
SCRIPT_NAME=`/usr/bin/basename "${0}"`
echo "${SCRIPT_NAME} - v1.0 ("`date`")"
SSL_FILE=`echo "${0}" | sed s/\.sh$/_ssl\.mobileconfig/`