Skip to content

Instantly share code, notes, and snippets.

View PhillyPhoto's full-sized avatar

Luis Lugo PhillyPhoto

View GitHub Profile
@PhillyPhoto
PhillyPhoto / Download and Install Jamf Connect.zsh
Last active September 4, 2025 01:22 — forked from talkingmoose/Download and Install Jamf Connect.zsh
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
bill@talkingmoose.net
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@PhillyPhoto
PhillyPhoto / timeout.sh
Created September 3, 2025 00:42 — forked from jaytaylor/timeout.sh
Mac OS-X does not come with the delightfully useful `timeout` program. Thankfully a rough BASH equivalent can be achieved with only 2 perl statements.
#
# Mac OS-X does not come with the delightfully useful `timeout` program. Thankfully a rough BASH equivalent can be achieved with only 2 perl statements.
#
# Originally found on SO: http://stackoverflow.com/questions/601543/command-line-command-to-auto-kill-a-command-after-a-certain-amount-of-time
#
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
## Example usage:
#