View jss-inventory.py
#!/usr/bin/python
"""
JSS + Ansible inventory
A dictionary of lists of computers by group name.
Heavily influenced by https://gist.github.com/BadStreff/0af3f881de162182eaaff406ce7a7f0d
with help from https://gist.github.com/chilcote/fb670103b8e90aaea67dee0ffc6cc983
I'd really like to avoid caching, as any sort of timeout won't be appropriate since I
View gist:abbbc6e18b5f71e53ffa5c2d39231388
#!/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):
View update-patch.sh
#!/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
View freeipa.md
[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.
View freeipa.py
#!/usr/bin/env python
import argparse
import json
from ipalib import api
def initialize():
'''
This function initializes the FreeIPA/IPA API. This function requires
View ea-appversion.py
#!/usr/bin/env python
"""
Check version of app installed using CFBundleVersion
"""
import os
import CoreFoundation
app = "Utilities/cocoaDialog.app" # Assumes '/Applications/App.app'
View ea-epp.py
#!/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):
View inventory.py
#!/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
View inventory.py
#!/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
View spotify-to-itunes-playlists.rb
#!/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