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
# curl https://swscan.apple.com/content/catalogs/others/index-10.13seed-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz | |
002_Card.pkg | |
002_Card_Preview_DE.pkg | |
002_Card_Preview_EN.pkg | |
002_Card_Preview_ES.pkg | |
002_Card_Preview_FR.pkg | |
002_Card_Preview_IT.pkg | |
002_Card_Preview_JA.pkg | |
002_Card_Preview_NL.pkg |
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
// | |
// main.swift | |
// prefs | |
// | |
// Created by Francois Levaux on 21.03.17. | |
// Copyright © 2017 Francois Levaux. All rights reserved. | |
// | |
// Similar to $ plutil -convert json /Library/Preferences/io.fti.SplashBuddy.plist -o - -r | |
import Foundation |
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 |
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
// | |
// 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
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
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
<?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/> |
NewerOlder