New project on my Github, called Swift-Bash-Runner, which runs a simple bash line from a Swift screen. Pretty simple, but could be tweaked to run your line of bash with an operator with little effort.
-
-
When My Code Actually Compiles
Rarely, but Happily!
-
Mac-Only MDM Profile Keys
Below is a listing of all the profile payloads that you see listed when using the Profile Manager web interface as well as their corresponding keys in the mobileconfig files. You can use these to generate profile keys programmatically: Distribution Type: Automatic Push Manual Download Organization: PayloadOrganization Description: PayloadDisplayName Automatically Remove Profile: PayloadRemovalDisallowed Payload scope: User or computer —— Identification User Display Name: Email address: EmailAddress User Name: FullName Password: Password User Enters Password: AuthMethod Prompt: Prompt Prompt Message: PromptMessage ——— Restrictions (com.apple.applicationaccess.new) Preferences tab: Restrict Items in System Preferences: familyControlsEnabled Allow array: EnabledPreferencePanes with each identified in a string for its domain: EnabledPreferencePanes com.apple.preferences.users com.apple.preference.general com.apple.preference.universalaccess com.apple.preferences.appstore com.apple.preferences.softwareupdate com.apple.preferences.Bluetooth…
-
Hello Swift
Let’s do a typical Hello World example in Swift. I have Xcode installed, so I can invoke a swift environment using xcrun, a command to start an interactive Xcode environment and then defining swift as the language I want to use, as follows using a standard Mac terminal session: $xcrun swift Then I get a welcome screen, which is kind: Welcome to Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81). Type :help for assistance. Then, I can throw some string into a variable: 1> let mystring = "Hello Swift" And I get a response that the string was accepted, as a string: mastering: String = "Hello Swift" Then I can just echo…
-
Hey Photos, stop opening when I plug in my devices…
When I plug my iPad in, Photos opens. I want it to stop opening when I plug it in. To make it stop, write a disableHotPlug key into com.apple.ImageCapture as true: defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true To enable Photos opening when you plug in a device again, just delete the disableHotPlug key: defaults -currentHost delete com.apple.ImageCapture disableHotPlug
-
Remove Records From A MySQL Database
Sometimes you have data in a MySQL database that you just don’t need. You can delete tables and records pretty easily. In fact, it’s almost too easy. And there’s no undo. So be careful. And backup. And then backup again. And then snapshot again, before tinkerating with anything in this article. In this article we’ll look at using the SQL DELETE statement to delete rows in a table. To do so, we’ll follow this basic syntax, which includes a WHERE clause to narrow the scope of the DELETE by specifying which records will be removed: DELETE FROM table WHERE column=value; In this article, we’ll use the same “Customers” table from…
-
6 Ways To Cloud Nirvana Article On IT Business Edge
I have another article up on the world webs. This one is on cloud use in small businesses, with IT Business Edge. Check it out at http://www.itbusinessedge.com/slideshows/6-ways-small-businesses-can-master-the-cloud-in-2016-08.html.
-
My 16 Mac Security Advances Article On TechCrunch
Ever since the kids from Silicon Valley went to TechCrunch, I’ve been thinking that at some point I’d want to put a piece there. Luckily, I recently got the chance. Today, 16 Apple Security Advances To Take Note Of In 2016 went up on TechCrunch. You can access the article here. The original article actually listed the year that each was introduced in order. It was a lot of work to go back in time and piece the timeline together, so since the years didn’t make it through editorial, I list them here (not that anyone actually cares): 2002: Managed Preferences 2003: FileVault 2004: Require all software installers that need system resources…
-
IT Administrator’s Guide For OS X Now Available On Lynda.com
It can be tough to get information about larger Mac deployments. I’ve written a few books on it. Apple has built some pages on it. But many prefer to consume their content through video. As such, Sean Collins has teamed up with Lynda.com to put together an IT Administrator’s Guide for El Capitan. With topics ranging from SIP to DEP, and all the acronyms in the middle, Sean’s soothing voice will guide you through what you need to get started with a new Mac deployment. Many a job can seem daunting, but with this latest addition to our arsenal, you’ll instantly feel less intimidated. It’s like the Sun A of…
-
My El Capitan Enterprise Mac Security Book Now Shipping
If you’re interested in Mac Security, the next edition of my Enterprise Mac Security book is now shipping. You can get it here http://www.amazon.com/Enterprise-Mac-Security-OS/dp/148421711X. The book is shipping from 3rd party sellers, but should ship directly from Amazon soon at the regular price. I don’t usually know exactly when, but it should also appear for Kindle and on the Apple Books store as well. Hope you enjoy!