Philip’s post about More OS X Leopard Tips & Tricks is quite dated, but basically, all the valuable tips there are still valid.
Among them also the tip how to get rid of the (usually annoying) drop shadows that Mac OS X adds to screenshots (enter the commands in a terminal window):
defaults write com.apple.screencapture disable-shadow -bool true
Adding shadows again:
defaults delete com.apple.screencapture disable-shadow
Sometimes, it may seem convenient to quickly connect a Bluetooth keyboard and a Bluetooth mouse to a Mac OS X Server machine for administration. The not so intuitive consequence of this however is, that at future startups, if there’s no keyboard or mouse connected to the machine (which is the common case with servers), Mac OS X will by default fall back to searching for that once connected Bluetooth keyboard or mouse and even stops booting when it doesn’t find them.
In order to prevent this, do the following on your Mac OS X Server:
- Open Bluetooth Preferences
- Disconnect and remove any associated Bluetooth devices
- Click the “Advanced…” button
- In the advanced Bluetooth settings, deselect both “Open Bluetooth Setup Assistant at startup if no keyboard is detected” and “Open Bluetooth Setup Assistant at startup if no mouse or trackpad is detected”
- Unless really needed, disable Bluetooth on a server. So, better grab a USB keyboard and mouse next time you need to do some admin ;)
When using Mac OS X, I used to use the CLI vim by the excellent Homebrew package manager.
Now I’ve just stumbled over macvim, which is kind of a “deluxe vim” for Mac OS X, including adjusted key bindings for the Mac and a GUI menu, supporting Cocoa file dialogs, among others.
It’s highly recommended if you want to have the best of both the CLI and GUI editor worlds.
Running the console IRC client weechat (not to confuse with the wechat messenger) in a screen or tmux session on a Linux (or Mac OS X) server and accessing it trough mosh is a great way to use IRC on the go, i.e. with a unsteady Internet connection.
P.S. Thanks to Devaux and rmeyer for the hints
If you ever need to quickly test an FTPS server, the CLI ftp client http://lftp.yar.ru is quite handy.
After upgrading Debian, OpenDKIM sometimes stops running or fails to properly restart. If you don’t actively monitor your ZCS server, the only way to detect this is either through a growing mail queue of unsent messages or through a note in the ZCS server admin panel.
Usually, manually restarting either OpenDKIM itself or the whole ZCS server once “fixes” the problem:
# service zimbra restart
# /etc/init.d/zimbra restart
In other cases, fixing the permissions may help:
# /opt/zimbra/libexec/zmfixperms -verbose -extended
Mac OS X comes with a pretty useful tool to list all the details about your system:
E.g. to find out whether your RAM supports ECC:
# system_profiler|grep ECC
Or wether your SSD supports TRIM:
# system_profiler|grep TRIM
TRIM Support: Yes
A friend recently told the following joke:
“The idea that git can be used offline is an illusion – you still need connectivity for googling which arguments to pass to what command.”
That’s an exaggeration, of course, but as always, there’s a grain of truth in it. So here we go: