Skip to content

Instantly share code, notes, and snippets.

View mwohlgemuth's full-sized avatar

Maximilian Wohlgemuth mwohlgemuth

View GitHub Profile
# provide the path to the git binary if you want MunkiWeb to add and commit
# manifest edits to a git repo
# if GITPATH is undefined or None MunkiWeb will not attempt to do a git add
# or commit
GIT_PATH = '/usr/bin/'
<?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>PayloadContent</key>
<dict>
<key>com.grahamgilbert.sal</key>
@mwohlgemuth
mwohlgemuth / gist:10b1d4af89c549342424
Created August 7, 2014 14:30
xcode-5.1.1 postinstall
<key>postinstall_script</key>
<string>#!/bin/sh
# Enable developer mode policies
/usr/sbin/DevToolsSecurity -enable
# Add a group to developer group
/usr/sbin/dseditgroup -o edit -a netaccounts -t group _developer
# Accept the Xcode EULA
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept
exit 0</string>
@mwohlgemuth
mwohlgemuth / printers.py
Created September 8, 2014 15:19
sal printers plugin
from yapsy.IPlugin import IPlugin
from yapsy.PluginManager import PluginManager
from django.template import loader, Context
from django.db.models import Count, Avg
from server.models import *
from django.shortcuts import get_object_or_404
import server.utils as utils
from django.conf import settings
from datetime import datetime, timedelta
from django.db.models import Q
# printers.rb
Facter.add('printers') do
confine :kernel => %w{Linux FreeBSD OpenBSD SunOS Darwin}
confine do
Facter::Core::Execution.which('lpstat')
end
setcode do
output = Array.new
@mwohlgemuth
mwohlgemuth / gist:665f47511b4b4dcb1443
Created October 2, 2014 10:36
installer.log 10.9.5 jenkins stable jenkins-1.565.3.pkg
Installer[383]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “jenkins-1.565.3.pkg”." UserInfo=0x7f9aaa81acd0 {NSFilePath=./postinstall, NSURL=file://localhost/Users/admin/Downloads/jenkins-1.565.3.pkg#orgjenkinsci-1.pkg, PKInstallPackageIdentifier=org.jenkins-ci.launchd-jenkins.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “jenkins-1.565.3.pkg”.}
Oct 2 11:40:43 apkg-imba-1.local installd[292]: PackageKit: Removing client PKInstallDaemonClient pid=383, uid=499 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
@mwohlgemuth
mwohlgemuth / gist:3605b908920dd96fc3ff
Created October 2, 2014 10:53
jenkins installer.log
Oct 2 12:51:24 apkg-imba-1.local runner[259]: Administrator authorization granted.
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: ================================================================================
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: User picked Standard Install
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Choices selected for installation:
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins 1.583"
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins"
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: jenkins-1.583.pkg#jenkins.pkg : org.jenkins-ci.jenkins.osx.pkg : 1.1405
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Start at boot as "jenkins""
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: jenkins-1.583.pkg#orgjenkinsci-1.pkg : org.jenkins-ci.launchd-jenkins.pkg : 1.0
Oct 2 12:51:24 apkg-imba-1.local Installer[227]: Install: "Jenkins Support Files"
@mwohlgemuth
mwohlgemuth / gist:4dc5fd7ed8231d61117a
Created October 3, 2014 08:45
makecatalogs munkilib.FoundationPlist.NSPropertyListWriteException: Failed to write plist data
Traceback (most recent call last):
File "/usr/local/munki/makecatalogs", line 297, in <module>
main()
File "/usr/local/munki/makecatalogs", line 294, in main
makecatalogs(repopath, options)
File "/usr/local/munki/makecatalogs", line 229, in makecatalogs
plistlib.writePlist(catalogs[key], catalogpath)
File "/usr/local/munki/munkilib/FoundationPlist.py", line 103, in writePlist
"Failed to write plist data to %s" % filepath)
@mwohlgemuth
mwohlgemuth / gist:94e2edd67ccfafdc55a2
Created October 20, 2014 14:14
Photoshop Camera Raw 8.5 Update
START - Installer Session
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
RIBS version: 6.2.10.0
OSX version: 10.10.0
::START TIMER:: [Total Timer]
CHECK: Single instance running
CHECK : Credentials
Load Deployment File
deploymentFile option not given
CHECK : Another Native OS installer already running
@mwohlgemuth
mwohlgemuth / gist:2b56ea93ee35511fffde
Created December 12, 2014 14:44
ds restore workflow fail
2014-12-12 15:37:49.839 DeployStudio Runtime.bin[388:5968] ====================================================================================================
2014-12-12 15:37:49.840 DeployStudio Runtime.bin[388:5968] DeployStudio Runtime
2014-12-12 15:37:49.874 DeployStudio Runtime.bin[388:5968] DSCore.framework version 1.6.12 (b141021), Copyright 2014 The DeployStudio Team.
2014-12-12 15:37:49.876 DeployStudio Runtime.bin[388:5968] MAC address: 00:25:4b:ba:09:f6
2014-12-12 15:37:49.894 DeployStudio Runtime.bin[388:5968] Network address: 10.42.15.73 (mac-w892029z8qs.local)
2014-12-12 15:37:49.906 DeployStudio Runtime.bin[388:5968] Network interface speed: AUTOSELECT (1000BASET <FULL-DUPLEX,FLOW-CONTROL>)
2014-12-12 15:37:49.919 DeployStudio Runtime.bin[388:5968] Operating System: Mac OS X Version 10.10 (Build 14A389)
2014-12-12 15:37:49.920 DeployStudio Runtime.bin[388:5968] Date: 14/12/12 15:37:49
2014-12-12 15:37:49.920 DeployStudio Runtime.bin[388:5968] ===================================================