Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
on mountOSDMG_(sender)
log "Trying to mount:" & droppedOSdmgPath
-- the below doesn't update
set my droppedOSDMGTextField to "Examining..."
-- Try & mount dropped file
set droppedOSdmgMountPath to do shell script "hdiutil attach " & droppedOSdmgPath & " -owners on | grep \"Volumes\" | awk '{print substr($0, index($0,$3))}' " as quoted form
@macmule
macmule / getJSSVersion
Created June 13, 2014 12:29
get JSS version
-- Get the JSS URL
set jssURL to "<enter-jss-URL-here"
-- Try & get the version of JSS from the supplied URL
try
-- Get a copy of the jss.html file, for parsing later, append the jssURL to grab the needed html file
set jssURLHtml to (do shell script "curl -k " & jssURL & "/jss.html")
-- Set delimiters to custom value cutting up html
@macmule
macmule / Gatekeeper-Test-Settings
Last active March 14, 2017 05:02
gatekeeper test
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1">
<dict>
<key>PayloadUUID</key>
<string>36543D25-F5EB-4B69-B564-056A43568A4B</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadOrganization</key>
<string>Pentland Brands Plc</string>
Composer Captured OS.dmg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>system-entities</key>
<array>
<dict>
<key>dev-entry</key>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Architectures</key>
<array>
<string>i386</string>
</array>
<key>BackwardCompatible</key>
<false/>
@macmule
macmule / imagr_config.plist
Last active August 29, 2015 14:21
Simple example Imagr
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0$
<plist version="1.0">
<dict>
<key>password</key>
<string>b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b$
<key>workflows</key>
<array>
<dict>
<key>name</key>
@macmule
macmule / kextidentifiers.py
Created April 27, 2018 08:04 — forked from erikng/kextidentifiers.py
kextidentifiers.py
#!/usr/bin/python
import sqlite3
conn = sqlite3.connect('/var/db/SystemPolicyConfiguration/KextPolicy')
c = conn.cursor()
query = 'SELECT * FROM kext_policy'
c.execute(query)
kexts = c.fetchall()
for kext in kexts:
print kext
@macmule
macmule / promptedapps.plist
Created October 24, 2021 16:23
cat ~/Library/PythonWrapper/promptedapps.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>/usr/local/munki/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python</key>
<string>Version 12.0 (Build 21A5248p)</string>
</dict>
</plist>
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>AutoCasperNBI's Changelog</title>
<link>https://macmule.com/AutoCasperNBI-AppCast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 1.3.3</title>
<description><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>ExampleApp ChangeLog</title>
<link>http://www.ExampleApp.com/</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 0.4.3</title>
<sparkle:releaseNotesLink>http://dl.dropbox.com/u/1140644/ExampleApp/release_note.html</sparkle:releaseNotesLink>