Skip to content

Instantly share code, notes, and snippets.

View PinkShellos's full-sized avatar

Vin Mascoli PinkShellos

  • Foundation Technologies
  • Minneapolis, MN
  • 15:50 (UTC -05:00)
View GitHub Profile
@PinkShellos
PinkShellos / jamfSetRecoveryLock.sh
Created December 2, 2022 15:20
Jamf API- Set Recovery Lock
#!/bin/bash
# POC script for Jamf Pro API
# Variables first
# API user accounts here. One for reading, one for writing back. Security.
# Generate API base64 credentials by using:
# printf "username:password" | iconv -t ISO-8859-1 | base64 -i -
# You can either place the base64 creds in the variable below or use the policy variables in Jamf
apib64="$4"
@PinkShellos
PinkShellos / jamf-connect-notify.sh
Created April 27, 2022 19:34
Example Jamf Connect Notify script
#!/bin/zsh
# Testing Mode
TESTING_MODE=true
#variables
NOTIFY_LOG="/var/tmp/depnotify.log"
JAMFBIN="/usr/local/bin/jamf"
MODEL_NAME=$(system_profiler SPHardwareDataType | awk '/Model Name/ {print $3}')
DONEFILE="/Users/Shared/.depNotifyDONE"
"""
nameshortn.py
Resolves issues with filenames that are too long for macOS and causing issues
with interacting with them. This is based around the filenames containing
metadata as well. This script is designed to look through a file for the base
file name that leaves it descriptive but not long. It shortens the filename
and then stores the rest as Item Comment metadata (kMDItemComment).
Written by Vin Mascoli of FNDTN for ArtClass, 2022
#!/bin/zsh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
# Optionally replace the value of this variable with the name of your organization.
organizationIdentifier=com.arekdreyer
@PinkShellos
PinkShellos / MegaPKGr.zsh
Created February 8, 2021 20:18 — forked from talkingmoose/MegaPKGr.zsh
The pkgbuild binary and Jamf Composer don't support adding single files of 8 GB or more to a package. Some apps like Install macOS Big Sur.app include files larger than 8 GB in their bundles. This script will create a deployable PKG file from apps whose bundles include those large files.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
bill@talkingmoose.net
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0
@PinkShellos
PinkShellos / NoLoAD-Notify.sh
Last active August 15, 2019 14:18
A NoLoAD Notify script developed from the Jamf DEPNotify Starter script.
#!/bin/bash
#################################################################################
#
# This script is developed from the Jamf DEPNotify Starter script for use with NoLoAD's Notify features.
# It triggers the Notify screen after login with AD credentials then runs policies based on the array below.
# This script is sanitized and free to use through the MIT License, any improvements are greatly appreciated.
# Feel free to comment or create a pull request.
#
# Copyright (c) 2019 Vince Mascoli (@PaperFixie)
@PinkShellos
PinkShellos / new_mac_name.py
Last active May 29, 2019 20:11
Generate Mac name based on username and model id
#!/usr/bin/python
# This script is to automate the naming process that our Macs follow: FirstnameLastname-Model
import subprocess
import sys
import os
from SystemConfiguration import SCDynamicStoreCopyConsoleUser
# dictionary matching our model naming schemes for Macs to their model identifiers
@PinkShellos
PinkShellos / c-to-f.rock
Last active August 7, 2018 20:07
A Celicius to Fahrenheit calculator program in the Rockstar Language
(Calculates Celcius to Fahrenheit - poetic Rockstar)
Devilish Secrets takes its hold
Their soul is possessed; over taken
The demoneye is ice to
Put its hold of Their soul with The demoneye into a dark grimoire
Give back a dark grimoire
@PinkShellos
PinkShellos / customer_service_bot.py
Last active February 21, 2019 12:31
A Customer Service Bot for the Definitely Not Sinister Cable Co. for the Programming in Python Codecademy Intensive
#
# Customer Service Bot was a project I worked on for the fictional ISP
# Definitely Not Sinister Cable Company (DNS) for my Python 3 course through Codecademy.
# It was developed in Jupyter Notebook using parameters dictated inside it.
# I have removed the comments from that for clarity, but added comments to
# make the code easier to maintain.
#
# -Vince Mascoli (@paperfixie) 2018
#
#
// sample of incorrect use of span-columns mixin
.foo {
@include outer-container();
.foo-nested {
@include span-columns(6);
}
}