[devyn@ipa ~]$ ipa help commands
automember-add Add an automember rule.
automember-add-condition Add conditions to an automember rule.
automember-default-group-remove Remove default (fallback) group for all unmatched entries.
automember-default-group-set Set default (fallback) group for all unmatched entries.
automember-default-group-show Display information about the default (fallback) automember groups.
automember-del Delete an automember rule.
automember-find Search for automember rules.
automember-mod Modify an automember rule.
This file contains hidden or 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 | |
import sys, os | |
import urllib, urllib2 | |
import base64 | |
import json | |
import requests | |
import xml.etree.ElementTree as ET | |
def requests_xml(jss_user, jss_pass, jss_url, category): |
This file contains hidden or 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 | |
# update a patch | |
PATCHSTARTER="/usr/local/sbin/patchstarter" | |
echo -n "Enter an app name: " | |
read -e APP_NAME | |
echo -n "Enter a Publisher name (blank to match App Name): " | |
read -e PUBLISHER_NAME |
This file contains hidden or 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/env python | |
import argparse | |
import json | |
from ipalib import api | |
def initialize(): | |
''' | |
This function initializes the FreeIPA/IPA API. This function requires |
This file contains hidden or 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/env python | |
""" | |
Check version of app installed using CFBundleVersion | |
""" | |
import os | |
import CoreFoundation | |
app = "Utilities/cocoaDialog.app" # Assumes '/Applications/App.app' |
This file contains hidden or 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/env python | |
# Check version of EPP, if installed | |
import os | |
import sys | |
import subprocess | |
filename = "/Library/CoSoSys/EndpointProtector/EppClient" | |
if os.path.exists(filename): |
This file contains hidden or 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/python3.4 | |
""" | |
Custom inventory script for Ansible populated by the JSS | |
""" | |
from functools import lru_cache | |
from os.path import dirname, realpath, join | |
from urllib.parse import quote | |
import argparse | |
import json |
This file contains hidden or 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/python3.4 | |
""" | |
Custom inventory script for Ansible populated by the JSS | |
""" | |
from os.path import dirname, realpath, join | |
from urllib.parse import quote | |
import argparse | |
import json | |
import configparser |
This file contains hidden or 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/env ruby | |
require 'uri' | |
require 'json' | |
require 'net/https' | |
require 'time' | |
require 'cgi' | |
require 'csv' | |
# You need a Spotify API app to have a client ID and client secret. Create | |
# one at https://developer.spotify.com/my-applications/#!/applications/create |
This file contains hidden or 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 | |
# Determine the printer driver version using lpinfo | |
# I got the printer information by running: | |
# [kris@Kris-MacBook-Pro ~]$ lpinfo --make-and-model "7225" -m | |
# Library/Printers/PPDs/Contents/Resources/Xerox WorkCentre 7225.gz Xerox WorkCentre 7225, 3.123.0 | |
# [kris@Kris-MacBook-Pro ~]$ | |
# | |
# for an HP I have I used: | |
# [kris@Kris-MacBook-Pro ~]$ lpinfo --make-and-model "hp laserjet p4010" -m |