Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/bin/python3
import logging
import sys
import os
'''This gist show the method to write a log to the stdout and to a file
https://stackoverflow.com/questions/13733552/logger-configuration-to-log-to-file-and-print-to-stdout
create_log adapts itself if python3 or python2 '''
@sebtomasi
sebtomasi / GetIconsFromJamf.sh
Created September 4, 2018 06:39
Downloads all the app's icons presents in Jamf Pro Server DB
#!/bin/bash
#Inset your jamf url
jamfUrl=""
#Insert the end of the range
END=100
#Define the folder you'd like to use
destFolder="${HOME}/Desktop/icons"
mkdir -p ${destFolder}