Skip to content

Instantly share code, notes, and snippets.

@homebysix
homebysix / postinstall
Created April 6, 2018 01:11
Trigger 10.13.2 update to begin installing at login window
#!/bin/bash
"/System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdateLauncher.app/Contents/MacOS/SoftwareUpdateLauncher" -RootInstallMode YES -SkipConfirm YES
@homebysix
homebysix / list_computer_groups.py
Created November 30, 2016 16:45
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()
@homebysix
homebysix / https_spotter.py
Last active January 5, 2021 06:41
HTTPS Spotter
#!/usr/local/autopkg/python
# encoding: utf-8
# HTTPS Spotter
# Copyright 2016-2020 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 September 29, 2023 20:34 — forked from geoff-nixon/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
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
@homebysix
homebysix / email_report.html
Created March 10, 2016 22:46
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 November 13, 2015 01:08
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 March 18, 2019 17:43
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
@homebysix
homebysix / show_unused_munki_packages.py
Last active August 29, 2015 14:26
show_unused_munki_packages.py
#!/usr/bin/env python
"""
Name: show_unused_munki_packages.py
Description: Given a path to a Munki repo, this script will tell you
which package names are unused in any manifests. Useful for
detecting things that were imported into Munki but never
added to a manifest.
Author: Elliot Jordan <elliot@lindegroup.com>
@homebysix
homebysix / macit_twitter_search_terms.txt
Created July 13, 2015 20:37
MacIT Twitter search terms
(#MacIT2015) OR (#MacITconf) OR (@MacITconf) OR (#MacIT -NERMAC -NERİMAN -FATIHHARBIYE lang:en)
@homebysix
homebysix / get_sourceforge_group_id.py
Last active March 18, 2019 17:44
get_sourceforge_group_id.py
#!/usr/bin/env python
'''
Name: get_sourceforge_group_id.py
Description: Given the name of a SourceForge project, returns its group
ID. Useful for creating AutoPkg recipes that leverage the
SourceForgeURLProvider processor.
Author: Elliot Jordan <elliot@elliotjordan.com>
Created: 2015-07-11