mac and macos¶
set a mac mini to turn on after a power failure without macos¶
if using linux on a mac mini hardware, search for a LPC controller
set the auto start flag on this controller
if needed, search for the right flag on this datasheet.
resizing an sparseimage¶
first, unmount the image if in use.
to increase the image size to 50Gb:
to shrink the image size:
reference: Sparse image Wikipedia article
find a file encoding¶
convert file to another encoding¶
remove windows line breaks¶
install homebrew. follow the instructions on https://brew.sh
after that, use homebrew to install dos2unix
and use it
rebuild the spotlight index¶
what the -E
option does?
-E This flag will cause each local
store for the volumes indicated to
be erased. The stores will be
rebuilt if appropriate.
remove duplicated entries in the open with
list¶
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
reference: Rebuild LaunchServices to Fix Duplicate Entries in OS X’s ‘Open With’ Menu
add a directory to the $PATH
¶
on mac os there's a directory called /etc/paths.d
. inside that, the path_helper
utility add the reference to all directories used on $PATH
.
to add any directory to /etc/paths.d
:
pay attention: the files inside /etc/pths.d
can't have empty line endings.
reference: Mac OS X: Set / Change $PATH Variable