Skip to content

Instantly share code, notes, and snippets.

View motionbug's full-sized avatar

Rob P motionbug

View GitHub Profile
@motionbug
motionbug / png2icns
Created October 9, 2018 13:51 — forked from djhaskin987/png2icns
Convert PNG file to ICNS file
# Stolen from here: http://stackoverflow.com/a/20703594/850326
#!/bin/sh
export POSIXLY_CORRECT=1
if [ -z "${1}" -o -z "${2}" ]
then
echo "Usage: ${0} <name> <original-png-location>"
fi
name=$1
@motionbug
motionbug / sips-icns-png.sh
Last active October 9, 2018 14:00
Create png from icns file
#!/bin/bash
#great little script to just use system icons for scripts
ICNS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Sync.icns"
LOGO="/private/tmp/logo.png"
convertlogo=$(sips -z 512 512 -s format png ${ICNS} --out ${LOGO})
#!/bin/zsh
#################################################
# Date: 05.12.23
#
# version 1.0
# Written by: Rob Potvin | Senior Consulting Engineer | Jamf
#
# DESCRIPTION
# Enable or Disable macOS Onboarding within the currenly logged in user.
#