Skip to content

Instantly share code, notes, and snippets.

Elliot Jordan homebysix

Block or report user

Report or block homebysix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@homebysix
homebysix / show_unused_munki_packages.py
Last active Aug 29, 2015
show_unused_munki_packages.py
View 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>
View macit_twitter_search_terms.txt
(#MacIT2015) OR (#MacITconf) OR (@MacITconf) OR (#MacIT -NERMAC -NERİMAN -FATIHHARBIYE lang:en)
@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 / autopkg_run_recipe_list.sh
Created Jun 15, 2015
autopkg_run_recipe_list.sh
View autopkg_run_recipe_list.sh
/usr/bin/python /usr/local/bin/autopkg run --recipe-list ~/Library/Application\ Support/AutoPkgr/recipe_list.txt --report-plist /tmp/autopkg-output.xml
@homebysix
homebysix / send_imessage.sh
Last active Jul 31, 2016
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 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 / jamfHelper_help.txt
Last active Mar 18, 2019
jamfHelper_help.txt
View jamfHelper_help.txt
JAMF Helper Help Page
Usage: jamfHelper -windowType [-windowPostion] [-title] [-heading] [-description] [-icon] [-button1] [-button2] [-defaultButton] [-cancelButton] [-showDelayOptions] [-alignDescription] [-alignHeading] [-alignCountdown] [-timeout] [-countdown] [-iconSize] [-lockHUD] [-startLaunchd] [-fullScreenIcon] [-kill]
-windowType [hud | utility | fs]
hud: creates an Apple "Heads Up Display" style window
utility: creates an Apple "Utility" style window
fs: creates a full screen window the restricts all user input
WARNING: Remote access must be used to unlock machines in this mode
@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
@homebysix
homebysix / autopkg-test.sh
Last active Aug 29, 2015
autopkg-test.sh
View autopkg-test.sh
/usr/bin/python /usr/local/bin/autopkg run --recipe-list ~/Library/Application\ Support/AutoPkgr/recipe_list.txt --report-plist /tmp/autopkg-test.xml
View gist:301a7a2e31b02ab7c45c
#!/bin/bash
# This function will echo text centered horizontally within the shell window.
echo_centered () {
# The character to be used as left/right filler.
if [[ -n "$2" ]]; then
FILLER="$2"
else
FILLER="="
You can’t perform that action at this time.