Merry Christmas ya’ll! On the first day of Christmas my true love gave to me one 32 gig iPad On the second day of Christmas my true love gave to me two bash one-liners On the third day of Christmas my true love gave to me three Red Hat servers On the fourth day of Christmas my true love gave to me four email blasts On the fifth day of Christmas my true love gave to me five retweets On the sixth day of Christmas my true love gave to me six regular expressions On the seventh day of Christmas my true love gave to me seven lines of perl…
-
-
Happy Holidays
Merry Christmas and to all a good night! <html> <head> <title>Merry Christmas</title> <script type="text/javascript"> function MerryChristmas() { alert ("Merry Christmas!"); } </script> </head> <body> <a href="javascript:MerryChristmas()">MerryChristmas</a> </body> </html>
-
Disable Natural Scrolling With a Script
I guess it’s a sign of my age. But I can’t stand that whole natural scrolling thing. So I disable it as a part of my imaging process. To do so, set the com.apple.swipescrolldirection global domain to false using defaults, as follows: defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false To set it back: defaults write NSGlobalDomain com.apple.swipescrolldirection -bool true
-
Securely Empty The Trash By Default
You can empty the OS X trash securely by choosing the Secure Empty Trash option from the Finder menu. However, you can configure the empty trash option to be a Secure Empty Trash operation. To do so, write an EmptyTrashSecurely key into the com.apple.finder.plist. Use defaults to write the key into this plist as follows: defaults write com.apple.finder EmptyTrashSecurely -bool true
-
Roundcube for OS X Server
The latest Roundcube installer for OS X Server is now available at http://topicdesk.com/downloads/roundcube. This update, which provides a pretty awesome WebMail interface to OS X Server’s Mail Service provides the following: One installer that supports all Mavericks and Yosemite Roundcube WebMail 1.0.3 installed as a WebApp Automatically Configured Plugins Roundcube CardDav: Server-based address books Roundcube Managesieve: Server-side mail filtering and vacation messages PHP and Roundcube Config automatically configured for a typical Mac installation sqllite database – we no longer use Postgres Integration with the Mail Service running on OS X Server
-
Reboot Your Own Machine At MacMiniColo
Even a Mac needs to be rebooted sometimes. If you host a computer at Mac Mini Colo, it’s pretty easy to reboot. To reboot your system, log into your account with MacMini Colo. Once logged in, click on Computers and then click on the computer that you’d like to reboot. Then click on the Reboot button and confirm the reboot.
-
Simple Preflight and Sanity Checking in Scripts
I was recently building some preflight scripts and was looking to record some information about a machine live, before proceeding with a script. I found the cheapest way to determine information about architectures and chipsets when scripting preflight scripts for OS X to be the arch and machine commands respectively. For example, to verify the architecture is i386, use the arch command with no options: /usr/bin/arch Which simply outputs “i386”: i386 To check the machine type, simply use the machine command: /usr/bin/machine Which outputs as follows: x86_64h
-
Scripted Country Geolocations Using OS X’s Built-In ip2cc
Recently I was working on a project where we were isolating IP addresses by country. In the process, I found an easy little tool built right into OS X called ip2cc. Using ip2cc, you can lookup what country an IP is in. To do so, simply run ip2cc followed by a name or ip address. For example, to lookup apple.com you might run: ip2cc apple.com Or to lookup Much Music, you might run: ip2cc muchmusic.ca The output would be: IP::Country modules (v2.28) Copyright (c) 2002-13 Nigel Wetters Gourlay Database updated Wed May 15 15:29:48 2013 Name: muchmusic.com Address: 199.85.71.88 Country: CA (Canada) You can just get the country line: ip2cc…
-
Disable Handoff In OS X
OS X Yosemite (10.10) and iOS 8 have a great new feature when used together called Handoff. Handoff shows you texts, web pages and more that you were using on an iOS device on your computer when you come back to it from other locations. Handoff is really, really awesome. But, for certain scenarios, it can be a bit of a challenge. It’s not completely obvious how you might disable Handoff, so we thought we’d point it out if you have institutionally owned iOS devices that have Macs close by running the same iCloud account. Learn How To Disable Handoff In OS X Here…
- Mac OS X, Mac OS X Server, Mac Security, Mass Deployment, Network Infrastructure, Programming, Ubuntu, Unix
Opposite Day: Reversing Lines In Files
The other day, my daughter said “it’s opposite day” when it was time to do a little homework, trying to get out of it! Which reminded me of a funny little command line tool called rev. Rev reads a file and reverses all the lines. So let’s touch a file called rev ~/Desktop/revtest and then populate it with the following lines: 123 321 123 Now run rev followed by the file name: rev ~/Desktop/revtest Now cat it: cat !$ Now rev it again: rev !$ You go go forward and back at will for fun, much more fun than homework… Enjoy!