This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Printer installation script | |
displayName="" # Spaces OK | |
printerName=$(sed 's/ /_/g' <<< "$displayName") # NO SPACES, changes to underscores | |
printerModel="" | |
serverAddr="" | |
protocol="" # [ socket (HP Jetdirect) | ipp | lpd | smb ] | |
printerAddr="$protocol://$serverAddr/$printerName" | |
officeLoc="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
[email protected] | |
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
# | |
# |
NewerOlder