(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?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>_metadata</key> | |
| <dict> | |
| <key>created_by</key> | |
| <string>tsutton</string> | |
| <key>creation_date</key> | |
| <date>2014-10-20T14:55:20Z</date> |
Mounting DMGs w/ HFS partitions:
http://linuxforums.org.uk/index.php?topic=1072.0
apt-get install hfsplus hfsutils hfsprogs dmg2img
| <?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>items</key> | |
| <array> | |
| <dict> | |
| <key>assets</key> | |
| <array> | |
| <dict> |
| class Rover: | |
| pass |
| from ctypes import CDLL | |
| loginPF = CDLL('/System/Library/PrivateFrameworks/login.framework/Versions/Current/login') | |
| result = loginPF.SACLockScreenImmediate() |
| import struct, objc | |
| from Foundation import NSBundle | |
| from Cocoa import NSAppleEventDescriptor | |
| def OSType(s): | |
| # Convert 4 character code into 4 byte integer | |
| return struct.unpack(b'>I', s)[0] | |
| # Create an opaque pointer type to mask the raw AEDesc pointers we'll throw around | |
| AEDescRef = objc.createOpaquePointerType('AEDescRef', b'^{AEDesc=I^^{OpaqueAEDataStorageType}}') |
| import objc | |
| from Foundation import NSBundle | |
| CG_bundle = NSBundle.bundleWithIdentifier_('com.apple.CoreGraphics') | |
| functions = [("CGSSessionCopyAllSessionProperties", b"@"),] | |
| objc.loadBundleFunctions(CG_bundle, globals(), functions) | |
| # example usage: graphical_security_sessions = CGSSessionCopyAllSessionProperties() |
| # Only tested on OSX 10.11.5 | |
| import objc | |
| from Foundation import NSBundle | |
| Metadata_bundle = NSBundle.bundleWithIdentifier_('com.apple.Metadata') | |
| functions = [ | |
| ('_MDCopyExclusionList', b'@'), | |
| ('_MDSetExclusion', b'@@I'), | |
| ] |