Archive for the ‘MacBook Retina’ Category
Posted by jpluimers on 2018/08/27
[WayBack ] I am on a Mac that is bound to an AD Domain. The AD Domain has a 90 days password expiration policy. When will my password expire? $ cat bin/is-passwor… – Kristian Köhntopp – Google+
For my link archive:
This file contains hidden or 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 —
validFor=$(( 90 * 86400 ))
domainPrefix='/Active Directory/DOMAIN/doma.in/"
lastPW=$(dscl "/$domainPrefix" -read /Users/$USER | awk '/SMBPasswordLastSet/ { print $NF }')
unixPW=$(($lastPW / 10000000 – 11644473600 + $validFor))
expireDate=$(date -r $unixPW)
echo "Password expires $expireDate"
Script copied to [WayBack ] Kristian Köhntopp: I am on a Mac that is bound to an AD Domain. The AD Domain has a 90 days password expiration policy. When will my password expire? · GitHub
–jeroen
Posted in *nix , Apple , bash , Development , Mac , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , MacMini , Power User , Scripting , Software Development | Leave a Comment »
Posted by jpluimers on 2018/08/03
Somewhere after Yosemite, braindead Mac OS X forcibly maps “Ctrl+Click” to right-click. In past versions, you could disable but those days have gone.
This means that inside Windows on VMware Fusion, you cannot add/remove items to/from a selection any more (for instance in the Windows Explorer).
Various workarounds turned up in my Google Search, but only this one works:
Holding down CTRL + OPTION together and LEFT CLICKING will do this.
Source: [WayBack ] vmware fusion – How to use the control key in VM Ware? – Super User
–jeroen
via:
Posted in Apple , Fusion , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , MacMini , macOS 10.12 Sierra , OS X 10.10 Yosemite , OS X 10.11 El Capitan , OS X 10.9 Mavericks , Power User , Virtualization , VMware | Leave a Comment »
Posted by jpluimers on 2018/07/31
There are [WayBack ] 7 ways to lock your MacBook – CNET : When it comes to locking your Mac, you have options.
For now I’ve added the below alias to my ~/.bash_profile which only works if you have “require a password immediately after sleep or screensaver begins”. I have that enabled (with a 5 second delay, not immediate so that when I’m behind my laptop and it starts the screensaver I can still move the mouse or touch a key to keep it awake).
alias sleep-display='pmset displaysleepnow'
See:
–jeroen
Posted in Apple , iMac , Mac , MacBook , MacBook Retina , MacBook-Pro , Power User | Leave a Comment »
Posted by jpluimers on 2018/07/17
I wasn’t expecting it to be so easy to install PowerShell on Mac OS X:
brew install Caskroom/cask/powershell
In the background it executes this script: https://github.com/caskroom/homebrew-cask/blob/master/Casks/powershell.rb . which indirectly goes through the URL template https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}.pkg.
On other non-Windows systems, you have to go through GitHub yourself: https://github.com/powershell/PowerShell . The PowerShell team at Microsoft has many more repositories including the Win32-OpenSSH port which you can find through https://github.com/PowerShell .
At the time of writing, PowerShell was available for these platforms:
The first version I installed on Mac OS X was this: ==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.17/powershell-6.0.0-alpha.17.pkg
By now I really hope it is out of Alpha state.
–jeroen
via:
Posted in *nix , Apple , CommandLine , Development , iMac , Linux , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , MacMini , openSuSE , Power User , PowerShell , PowerShell , Scripting , Software Development , SuSE Linux , Ubuntu | Leave a Comment »
Posted by jpluimers on 2018/07/02
I hear stories of people having their replacement screens stain as well, some of them get a renewed free repair. [WayBack ] Apple Extends Free Repairs of Anti-Reflective Coating on Select MacBook and MacBook Pro Models – Mac Rumors .
Affected models for an initial repair:
MacBook Pro (13-inch, Early 2013)
MacBook Pro (15-inch, Early 2013)
MacBook Pro (13-inch, Late 2013)
MacBook Pro (15-inch, Late 2013)
MacBook Pro (13-inch, Mid 2014)
MacBook Pro (15-inch, Mid 2014)
MacBook Pro (13-inch, Early 2015)
MacBook Pro (15-inch, Mid 2015)
MacBook Pro (13-inch, 2016)
MacBook Pro (15-inch, 2016)
MacBook Pro (13-inch, 2017)
MacBook Pro (15-inch, 2017)
MacBook (12-inch, Early 2015)
MacBook (12-inch, Early 2016)
MacBook (12-inch, Early 2017)
–jeroen
Read the rest of this entry »
Posted in Apple , Mac , MacBook , MacBook Retina , MacBook-Pro , Power User | Leave a Comment »
Posted by jpluimers on 2018/06/11
Connect the volume you want excluded to the Mac, even if Spotlight is currently indexing
Launch “System Preferences” and click on “Spotlight” followed by the ‘Privacy’ tab
Drag the drives icon into the Privacy window
Source and more information (including how to do this from the terminal): [WayBack ] Stop Spotlight from Indexing Time Machine Backup Volumes & External Drives
–jeroen
Posted in Apple , iMac , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , MacMini , macOS 10.12 Sierra , OS X 10.10 Yosemite , OS X 10.11 El Capitan , OS X 10.8 Mountain Lion , OS X 10.9 Mavericks , Power User | Leave a Comment »
Posted by jpluimers on 2018/04/16
Learn one way to change Excel’s Control-U shortcut to the easier-to-use F2 (which also matches the Windows’ shortcut).
Ah, so Ctrl-U is the shortcut to edit a cell on Mac OS X with Microsoft Office Excel (:
Source: [WayBack ] Change Excel’s ‘edit in cell’ keyboard shortcut | Macworld
–jeroen
Posted in Apple , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , OS X 10.9 Mavericks , Power User | Leave a Comment »
Posted by jpluimers on 2018/04/13
When you have many /tmp/wifi-{date}__{time}.log files, then this is how to get rid of them (it happened to me on a fresh Sierra machine):
At least on macOS Sierra (10.12):
You can see what WIFI related components have debug logging enabled with:shell# /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport debug
You can disable all debug logging with:shell# /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport debug -AllUserland -AllDriver -AllVendor
For whatever reason, the debug logging flag was enabled for ‘DriverWPA’ on my machine and that resulted in /tmp/wifi-{date}__{time}.log files getting generated when joining new WPA2 protected WIFI networks.
Source: [WayBack ] macos – When /tmp/wifi-*.log will show up and how can I stop it? – Super User ; thanks [WayBack ] MattLord for answering that!
–jeroen
Posted in Apple , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Pro , macOS 10.12 Sierra , Power User | Leave a Comment »
Posted by jpluimers on 2018/03/30
TL;DR: Connecting to Macs over Thunderbolt is easy and has transfer speeds way faster than other network connections.
Summary of steps from [WayBack ] Connecting two Macs using Thunderbolt | Macworld
Connect the Thunderbolt cable between two Macs
In the Network Preferences find the self-assigned IP address on either side
In that side, ensure you have File Sharing enabled
On the other side, open a Finder, press Command-K, then the IP-address you noted and logon
Transfer files
This also increases LAN sync speeds of DropBox, Google Drive and others.
Note the connection by default using SMB
–jeroen
Posted in Apple , Mac , Mac OS X / OS X / MacOS , MacBook , MacBook Retina , MacBook-Air , MacBook-Pro , macOS 10.12 Sierra , Power User | Leave a Comment »