Topic | Binding | Not Binding |
---|
This file contains 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/libexec/PlistBuddy -c "Add :JSS_REPOS array" ~/Library/Preferences/com.github.autopkg.plist | |
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0 dict" ~/Library/Preferences/com.github.autopkg.plist | |
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:name string local" ~/Library/Preferences/com.github.autopkg.plist | |
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:type string Local" ~/Library/Preferences/com.github.autopkg.plist | |
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:mount_point string /Users/Shared/JAMFDistrib" ~/Library/Preferences/com.github.autopkg.plist | |
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:share_name string JAMFDistrib" ~/Library/Preferences/com.github.autopkg.plist | |
autopkg run /Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/MalwarebytesAntiMalware.jss.recipe |
This file contains 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
/** | |
* Network Change Notifier | |
* | |
* Made by François 'ftiff' Levaux-Tiffreau - fti@me.com | |
* | |
* | |
* Simply modify "changed" | |
* | |
*/ |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<ProxySetting> | |
<Context InitContext="[WSCONTEXT]" /> | |
<PACFile URL="[PACFILE]" /> | |
<UPDATE URL="http://download.global.blackspider.com/epud/" /> | |
</ProxySetting> |
This file contains 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
<?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>SHOWFULLNAME</key> | |
<false/> | |
<key>HideLocalUsers</key> | |
<false/> | |
<key>HideMobileAccounts</key> | |
<false/> |
This file contains 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
import CoreGraphics | |
import AppKit | |
// http://stackoverflow.com/questions/30038203/cggetonlinedisplaylist-usage-in-swift-array-as-a-parameter | |
let maxDisplays: UInt32 = 2 | |
//var displays: UnsafeMutablePointer<CGDirectDisplayID> = nil | |
var displays = [CGDirectDisplayID](count: Int(maxDisplays), repeatedValue: 0) | |
var displayCount: UInt32 = 0 | |
CGGetOnlineDisplayList(2, &displays, &displayCount) |
This file contains 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
import CoreGraphics | |
@_silgen_name("CGSSessionCopyAllSessionProperties") private func CGSSessionCopyAllSessionProperties() -> CFArray? | |
func getCurrentUser() -> String? { | |
if let sessions: NSArray = CGSSessionCopyAllSessionProperties() { | |
for session in sessions { | |
let dict = session as! Dictionary<String, AnyObject> | |
if dict["kCGSSessionOnConsoleKey"] as! Bool { | |
return dict["kCGSSessionUserNameKey"] as? String |
This file contains 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
// | |
// getSerialnumber.swift | |
// | |
// Created by Francois 'ftiff' Levaux-Tiffreau on 18.07.16. | |
// Licence = MIT (https://tldrlegal.com/license/mit-license) | |
/* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | |
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
This file contains 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
// | |
// updateCasperLocation.swift | |
// | |
// Created by Francois 'ftiff' Levaux-Tiffreau on 18.07.16. | |
// Licence = MIT (https://tldrlegal.com/license/mit-license) | |
/* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | |
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
This file contains 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 | |
plist=/Library/LaunchDaemons/io.fti.mycliapp.plist | |
# Scenario 1 -- app:killed instantaneously -- plist:removed -- launchdaemon:removed | |
/Applications/MyCliApp.app/Contents/MacOS/MyCliApp & | |
rm $plist | |
launchctl remove io.fti.mycliapp |
OlderNewer