Skip to content

Instantly share code, notes, and snippets.

View shard.sh
#!/bin/bash
###
#
# Name: shard.sh
# Description: This Casper extension attribute takes a Mac serial
# number as input and uses that serial number to output a
# number from 0 to 9. This can be useful in scoping Casper
# policies to a specific percentage of the fleet.
# Author: Elliot Jordan <elliot@elliotjordan.com>
@homebysix
homebysix / osx-software-update-urls.txt
Last active May 11, 2020 — forked from geoff-nixon/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
@homebysix
homebysix / send_imessage.sh
Last active Apr 28, 2020
send_imessage.sh
View send_imessage.sh
#!/bin/bash
RECIPIENT="+14155551212"
MESSAGE="Hello world"
cat << EOF > /tmp/send_imessage.scpt
tell application "Messages"
set serviceID to get id of first service
set theRecipient to buddy "${RECIPIENT}" of service id serviceID
send "${MESSAGE}" to theRecipient
View 2020-02-04 autopkg dupe recipe filenames.txt
adobeflashplayer.download
First commit 2013-08-25 20:54:44 -0700 for ./recipes/AdobeFlashPlayer/AdobeFlashPlayer.download.recipe
First commit 2015-01-18 22:52:12 +0000 for ./vmule-recipes/AdobeFlashPlayer/AdobeFlashPlayer.download.recipe
affinityphoto.download
First commit 2019-09-02 11:58:37 +0200 for ./peterkelm-recipes/Serif/AffinityPhoto.download.recipe
First commit 2019-09-05 16:45:32 +0200 for ./faumac-recipes/Affinity Photo/Affinity Photo.download.recipe
affinitypublisher.download
First commit 2019-09-05 16:45:32 +0200 for ./faumac-recipes/Affinity Publisher/Affinity Publisher.download.recipe
View Eligible for AppPkgCreator.txt
Recipe ./aanklewicz-recipes/GameSalad/GameSalad.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/CharlesProxy/CharlesProxy.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/ClipMenu/ClipMenu.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Google PythonAppEngineSDK/GoogleAppEngineLauncher.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Isolator/Isolator.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Pacifist/Pacifist.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Reflector/Reflector.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Sonos/Sonos.pkg.recipe is eligible for AppPkgCreator.
Recipe ./arubdesu-recipes/Synergy/Synergy.pkg.recipe is eligible for AppPkgCreator.
Recipe ./bochoven-recipes/JASP/JASP.pkg.recipe is eligible for AppPkgCreator.
@homebysix
homebysix / convert_autopkg_recipes_to_yaml.py
Last active Jan 30, 2020
convert_autopkg_recipes_to_yaml.py
View convert_autopkg_recipes_to_yaml.py
#!/usr/bin/python
import plistlib
from collections import OrderedDict
from glob import glob
import yaml
def represent_ordereddict(dumper, data):
value = []
View https_spotter.py
#!/usr/bin/python
# This Python file uses the following encoding: utf-8
# HTTPS Spotter
# Copyright 2016-2019 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 / PkgCreator_to_AppPkgCreator.py
Last active May 19, 2019
Convert AutoPkg recipes to AppPkgCreator
View PkgCreator_to_AppPkgCreator.py
#!/usr/bin/python
"""
Name: PkgCreator_to_AppPkgCreator.py
Description: Script for converting compatible AutoPkg "pkg" type recipes from using
PkgRootCreator-Copier-PkgCreator to using AppPkgCreator. Be sure to `cd` to
your AutoPkg recipes folder before running this script.
Author: Elliot Jordan <elliot@elliotjordan.com>
Created: 2019-02-13
@homebysix
homebysix / get_sourceforge_group_id.py
Last active Mar 18, 2019
get_sourceforge_group_id.py
View 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
@homebysix
homebysix / ip_addresses.sh
Last active Mar 18, 2019
A Casper extension attribute that displays the active IP addresses of the Mac.
View ip_addresses.sh
#!/bin/bash
###
#
# Name: ip_addresses.sh
# Description: A Casper extension attribute that displays the active IP
# addresses of the Mac.
# Author: Elliot Jordan <elliot@elliotjordan.com>
# Created: 2014-06-04
# Last Modified: 2015-03-18
You can’t perform that action at this time.