Skip to content

Instantly share code, notes, and snippets.

View mwohlgemuth's full-sized avatar

Maximilian Wohlgemuth mwohlgemuth

View GitHub Profile
@erikng
erikng / fix_craptacular_office.sh
Created October 1, 2015 15:34
Office 2016 LS register
#!/bin/bash
if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app" ]
then
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app"
fi
if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app" ]
then
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app"
@timsutton
timsutton / set_crashreport_autosubmit_settings.sh
Last active August 29, 2015 14:09
Script to configure Crash Reporter's Diagnostics Submissions and thereby suppress the dialog displayed in Setup Assistant on 10.10.
#!/bin/sh
#
# This shell snippet will pre-set CrashReporter's setting for diagnostics submissions
# to Apple and app developers. This seems to also have the side effect of not showing
# the additional "Diagnostics & Usage" dialog at the end of the Setup Assistant,
# because the settings have already been configured in the
# DiagnosticMessagesHistory.plist file.
#
# Modify the SUBMIT_TO_* variables below to either YES or NO to configure the setting.
# They are currently set to the defaults suggested by Apple when the dialog is shown
@arubdesu
arubdesu / Notes.txt
Last active August 29, 2015 14:08
Notes from the Tim Sutton and Graham Gilbert's deployment session
We started by discussing what's new in Yosemite:
Puppet as a tool is unaffected, due to getting over the issues with Rubby 2.0 in Mavericks.
The issues with NetInstall and CreateOSXInstallPkg with the distribution pkg format were discussed, as per:
https://github.com/munki/createOSXinstallPkg#further-note-on-additional-packages-and-yosemite
SCCM hasn't been well know to immediately support OS releases, nor patch broken functionality in a timely fashion.
Re: looking to migrate a DeployStudio repo to a new address but reuse nbi's of older version of the OS was given the option of mounting them as they are read/write, and can therefore be updated for new server location. Another point is you can provide auth to automatically run workflows at the NBI level, which is super cool for lab re-imaging.
@bruienne
bruienne / sample_802.1x_loginwindow.mobileconfig
Last active March 9, 2018 15:41
Skeleton mobileconfig plist that enables 802.1x login to Wifi network at OS X login window
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadCertificateFileName</key>
<string>my.org.cer</string>
<key>PayloadContent</key>
#!/bin/sh
scriptDir=$(dirname "$0")
if [ -e "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/Resources/CobraClientDebugUI.nib/classes.nib" ]; then
rm "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/Resources/CobraClientDebugUI.nib/classes.nib"
echo "Deleting classes.nib"
else
echo "Did not find classes.nib"
fi
@azet
azet / gist:9069927
Created February 18, 2014 12:19
convert .flac to .mp3 for iPhone itunes bullshit, thx to @zeha
find . -iname '*.flac' -exec mkdir -p "converted/{}" \; -exec ffmpeg -i "{}" -q:a 1 "converted/{}.mp3" \;