Skip to content

Instantly share code, notes, and snippets.

@bochoven
bochoven / dropbox_disable_helper.plist
Created July 13, 2012 11:17
Munki pkgsinfo file disabling dropbox helper haxie
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
#!/bin/sh
# Script by rtrouton
# Cleanup by Arjen van Bochoven (oct 2013)
# Get major OS version (uses uname -r and bash substitution)
# osvers is 10 for 10.6, 11 for 10.7, 12 for 10.8, etc.
osversionlong=$(uname -r)
osvers=${osversionlong/.*/}
# Checks to see if the OS on the Mac is >= 10.7
@bochoven
bochoven / gist:6dec8309e0e31d5b0c74
Last active August 29, 2015 14:07
Munki managed printer
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@bochoven
bochoven / munki_rebrand.py
Last active October 19, 2016 10:43
Rebrand Munki 2 with a custom name and custom icon
#!/usr/bin/python
# encoding: utf-8
#
# Arjen van Bochoven Oct 2014
# Script to rebrand/customize Managed Software Center
#
# Prerequisites: You need Xcode (5/6) installed
# For Xcode 6 you need to add the 10.8 SDK
# See: https://github.com/munki/munki/wiki/Building%20Munki2%20Pkgs
#
@bochoven
bochoven / makehtaccess
Last active August 29, 2015 14:08
Create htaccess file from pkginfo files
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright 2009-2014 Arjen van Bochoven.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@bochoven
bochoven / Office 2011 Update 14.4.8 EN
Last active December 15, 2016 07:33
Office 2011 Update 14.4.8 EN
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>jenkins</string>
<key>creation_date</key>
<date>2015-02-11T04:46:00Z</date>
@bochoven
bochoven / Office Update 2011 14.4.8 NL
Created February 13, 2015 15:25
Office Update 2011 14.4.8 NL
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>jenkins</string>
<key>creation_date</key>
<date>2015-02-13T13:32:57Z</date>
@bochoven
bochoven / gist:4d27022a63c725c3a2b9
Created June 17, 2015 12:31
Mac OSX: gather info on local disks
#!/usr/bin/python
"""Mac OS X Disk/Volume script for munkireport.
https://github.com/munkireport/munkireport-php
Some ideas and functions are borrowed from gmacpyutil
https://github.com/google/macops
The script iterates over all partitions and returns a list
of Volumes with basic info (TotalSize, FreeSpace, MountPoint, VolumeName)
@bochoven
bochoven / custom.js
Created August 6, 2015 08:33
Site info module for Munkireport javascript
/*!
* Custom javascript for munkireport
*
*/
$(document).on('appReady', function(e, lang) {
// Add Site info to listing
var listingDropdown = $('span[data-i18n="nav.main.listings"]').parent().next();
listingDropdown.append(
$('<li>')
<?php $this->view('partials/head', array('scripts' => array('clients/client_list.js'))); ?>
<?php //Initialize models needed for the table
new Machine_model;
new Reportdata_model;
new department_model;
?>
<div class="container">