Skip to content

Instantly share code, notes, and snippets.

Elliot Jordan homebysix

View GitHub Profile
@homebysix
homebysix / PkgCreator_to_AppPkgCreator.py
Last active Feb 13, 2019
Convert AutoPkg recipes to AppPkgCreator
View PkgCreator_to_AppPkgCreator.py
#!/usr/bin/python
import os
import plistlib
from xml.parsers.expat import ExpatError
def evaluate(recipe, recipe_path):
'''Perform conversion to AppPkgCreator.'''
@homebysix
homebysix / .gitlab-ci.yml
Last active Jan 25, 2019
MunkiPkg linting
View .gitlab-ci.yml
variables:
TZ: America/Los_Angeles
munkipkg_linting:
script: python munkipkg_linting.py
@homebysix
homebysix / delete_jamf_remote_policies.py
Created Jan 10, 2019
delete_jamf_remote_policies.py
View delete_jamf_remote_policies.py
#!/usr/bin/python
import base64
import urllib2
import re
from time import time
import xml.etree.ElementTree as etree
from CoreFoundation import CFPreferencesCopyAppValue # pylint: disable=no-name-in-module
@homebysix
homebysix / postinstall
Created Apr 6, 2018
Trigger 10.13.2 update to begin installing at login window
View postinstall
#!/bin/bash
"/System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdateLauncher.app/Contents/MacOS/SoftwareUpdateLauncher" -RootInstallMode YES -SkipConfirm YES
View list_computer_groups.py
#!/usr/bin/python
import jss
# Connect to the JSS. (Requires python-jss to be configured.)
jss_prefs = jss.JSSPrefs()
j = jss.JSS(jss_prefs)
# Print computer groups.
print j.ComputerGroup()
View https_spotter.py
#!/usr/bin/python
# This Python file uses the following encoding: utf-8
# HTTPS Spotter
# Copyright 2016 Elliot Jordan
#
# 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
#
@homebysix
homebysix / osx-software-update-urls.txt
Last active Jan 21, 2019 — forked from geoff-codes/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
View osx-software-update-urls.txt
10.3 (Panther):
https://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger):
https://swscan.apple.com/content/catalogs/index.sucatalog
https://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard):
https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
View email_report.html
<html>
<head>
<style>
* {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 9pt;
line-height: 1.2em;
}
a {
@homebysix
homebysix / EclipseIDE.download.recipe
Last active Nov 13, 2015
EclipseIDE.download.recipe
View EclipseIDE.download.recipe
<?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>Description</key>
<string>Downloads the current release version of Eclipse.</string>
<key>Identifier</key>
<string>com.github.sheagcraig.download.EclipseIDE</string>
<key>Input</key>
<dict>
@homebysix
homebysix / is_in_specified_subnet.sh
Last active Mar 18, 2019
is_in_specified_subnet.sh
View is_in_specified_subnet.sh
#!/bin/bash
###
#
# Name: is_in_specified_subnet.sh
# Description: A script that detects whether this Mac is on a particular
# subnet, as determined by whether the IP starts with a
# specific string.
# Author: Elliot Jordan <elliot@elliotjordan.com>
# Created: 2015-09-21
You can’t perform that action at this time.