Skip to content

Instantly share code, notes, and snippets.

View robjschroeder's full-sized avatar
💻
This is the way

Robert Schroeder robjschroeder

💻
This is the way
View GitHub Profile
@robjschroeder
robjschroeder / Invoke-Rejection.ps1
Created May 8, 2025 01:34 — forked from jorgeasaurus/Invoke-Rejection.ps1
Retrieves a random rejection reason from the No-as-a-Service API.
function Invoke-Rejection {
<#
.SYNOPSIS
Retrieves a random rejection reason from the No-as-a-Service API.
.DESCRIPTION
Sends an HTTP GET request to the No-as-a-Service (NAAS) API endpoint and returns a randomly generated rejection message.
This function is useful for applications requiring humorous or creative rejection responses.
.INPUTS
@robjschroeder
robjschroeder / postinstall-SYM.zsh
Created April 23, 2023 07:22
Post Install script intended to be delivered in Jamf Prestage to tee up Setup Your Mac for a zero-touch workflow.
#!/bin/zsh
## postinstall
# Postinstall script which creates the following:
# - A LaunchDaemon that starts a separate script to run a Jamf Pro policy command
# - A script to wait for Jamf Pro enrollment to complete then triggers Setup Your Mac
# - A script that is designed to be called by a Jamf Pro policy to unload the Launch Daemon
# -- and then remove the LaunchDaemon and script
# - Creates "/Library/Application Support/Dialog/Dialog.png" from Self Service's custom icon (thanks, @meschwartz!)
#