Skip to content

Instantly share code, notes, and snippets.

## Steps to get the container to work
# first clone down the source
git clone https://bitbucket.org/bruienne/bsdpy
# move into the docker directory and set the +x on start.sh
chmod +x start.sh
# Edit the docker file and add the following
ENV DOCKER_BSDPY_PATH /nbi
@calum-github
calum-github / gist:25ca466035e11bd65780
Last active August 29, 2015 14:09
DeployStudio Server Plist
<?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>runtime</key>
<dict>
<key>quitAfterCompletion</key>
<string>YES</string>
<key>timeoutInSeconds</key>
<string>30</string>
@calum-github
calum-github / JavaEssentials.pkg
Created January 16, 2015 01:36
Java 2014-001 scripts
These are the scripts from the JavaEssentials.pkg
@calum-github
calum-github / JavaSecurity.pkg
Created January 16, 2015 01:38
Java 2014-001 scripts
Scripts from JavaSecurity.pkg
@calum-github
calum-github / gist:8ed847153bf1e28f9b11
Last active August 29, 2015 14:14
AutoCasperNBI Post Processor Script
#!/bin/bash
######################################################################################
# #
# Author: Calum Hunter #
# Date: 12/12/2014 #
# Version: 0.3 #
# Purpose: Script to clean up an AutoCasperNBI for use with DEC BootStrapper. #
# #
# #
@calum-github
calum-github / test.sh
Last active August 29, 2015 14:14
killing prefpanes and shit
#!/bin/bash
# Display useage info if run with no arguments:
if [ -z $1 ]; then
echo "Useage: ./test.sh com.apple.preferences.mouse /Library/Preferences/com.apple.systemprefreeences.plist"
exit 1
fi
# Test to see if our pane actually exists in plist
echo "*** Testing for presence of prefpane $1"
@calum-github
calum-github / gist:d5670cbb33f3d557cb3a
Created February 5, 2015 01:50
centos bsdpy prep
#!/bin/bash
######################################################################################
# #
# Author: Calum Hunter #
# Date: 29/01/2015 #
# Version: 0.4 #
# Purpose: This script will go through and setup a base CentOS 7 minimal OS #
# install so that it is ready to be made into a VM template or cloned. #
# It will also install the first_boot_setup.sh script so that #
@calum-github
calum-github / gist:b74d65efa75702f1fca0
Created February 11, 2015 23:08
Office 2011 updates
#!/bin/bash
###################################################################################
# #
# Author: Calum Hunter #
# Date: 21-10-2014 #
# Vesion: 0.1 #
# Purpose: This script removes the all quit apps pre-install script #
# From the Office 2011 Updates as this normally causes a hang #
# when deployed as unattended install in some management tools. #
@calum-github
calum-github / change_desktop.py
Created February 26, 2015 01:57
change desktop 10.9+
#!/usr/bin/python
'''Uses Cocoa classes via PyObjC to set a desktop picture on all screens.
Tested on Mountain Lion and Mavericks. Inspired by Greg Neagle's work: https://gist.github.com/gregneagle/6957826
See:
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html
#!/bin/sh
# Copyright 2000-2011, Apple Inc.
#
# Disable prebinding-on-the-fly while we're read-only boted
#
export DYLD_NO_FIX_PREBINDING=1
#
# Set autopower on after power failure