Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
This isn't a guide about locking down homebrew so that it can't touch the rest of your system security-wise.
This guide doesn't fix the inherent security issues of a package management system that will literally yell at you if you try to do something about "huh, maybe it's not great my executables are writeable by my account without requiring authorization first".
But it absolutely is a guide about shoving it into its own little corner so that you can take it or leave it as you see fit, instead of just letting the project do what it likes like completely taking over permissions and ownership of a directory that might be in use by other software on your Mac and stomping all over their contents.
By following this guide you will:
sudo
to forcefully change permissions of some directory to be owned by your account// Usage: | |
/* | |
if let aStreamReader = StreamReader(path: "/path/to/file") { | |
defer { | |
aStreamReader.close() | |
} | |
while let line = aStreamReader.nextLine() { | |
print(line) | |
} | |
} |
file = open("usb_hid_keys.h", "r") | |
for line in file: | |
goodline = line[8:].split(" ") | |
if line.startswith("#define ") and len(goodline)>1: | |
key = goodline[0] | |
value = "" | |
for i in range(1, len(goodline)): | |
if goodline[i] == "": | |
continue |
import Cocoa | |
class MyInitiallyPositionedWindowController: NSWindowController { | |
override func windowDidLoad() { | |
super.windowDidLoad() | |
if let window = window, screen = window.screen { | |
let screenRect = screen.visibleFrame | |
let offsetFromLeft = CGFloat(200) |