Skip to content

Instantly share code, notes, and snippets.

@loceee
loceee / gist:fa65f4baaad436a84c53
Created April 30, 2015 00:38
jssVPPUserCreator.sh
#!/bin/bash
#
# jssVPPUserCreator.sh
#
# i should be python
#
# feed me a csv
# user,domain,devicename,department,building
# ipad+01,gmail.com,iPad-01,cart1,school
#
@loceee
loceee / gist:21643ea6db2c0eb9c1db
Last active August 29, 2015 14:18
Profile post install script for delivering profiles in a pkgs
#!/bin/bash
#
# postinstall-profileInstaller.sh
#
# because, derp - https://jamfnation.jamfsoftware.com/discussion.html?id=13997
IFS=$'\n'
for mobileconfig in /tmp/profiles/*
do
profiles -I -F "${mobileconfig}"
@loceee
loceee / timemachine_days_ext.sh
Created April 2, 2015 01:56
TimeMachineDaysSinceLast
#!/bin/bash
#
# days since last Time Machine backup, 0 if not enabled
# scope < smart group to catch devices that are not backing up promptly
#
# - known issue with multiple destinations -
# - thanks here - https://jamfnation.jamfsoftware.com/discussion.html?id=8814
OS=$(sw_vers | awk '/ProductVersion/{print substr($2,1,5)}' | tr -d ".")
@loceee
loceee / AdwareExt.py
Last active September 29, 2016 05:20
AdwareRemover - thanks shea
#!/usr/bin/python
"""Identify or remove files known to be involved in Adware/Malware
infection.
Most of the code applies to building a list of malware files. Thus,
both extension attribute and removal handling are included.
Cleans files as a Casper script policy; thus, it expects four total
arguments, the first three of which it doesn't use, followed by
--remove