Xcode/iOS license reminder

As a Homebrew user I find myself searching on how to agree to the new Xcode/iOS license after every Xcode update when I into the following error message on brew update: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. Error: Failure while executing: git checkout -q master So as a quick reminder for myself; this pops up the new license to agree to: sudo xcrun cc UPDATE, 23 Oct 2015: it seems that Xcode > 7.

Reinstall your iMac to fix a non-working right click

or how nuking my font caches fixed “secondary (right) click” Here’s a short tale that left me flabbergasted earlier this week. Let’s first introduce the main characters before embarking on this strange trip. First, the main character, an iMac, model “late 2013” running OS X 10.9.4, which has been loyally providing it’s services for about 10 months, without a single complaint. Next is the “Magic Mouse”, this device has been tied to it’s wireless Bluetooth leash ever since it came along the iMac.

Portscout for OpenBSD

Portscout is a neat tool that scans an entire ports tree and then checks the upstream sites for any new releases. This tool was originally written for FreeBSD and this weekend I hacked it up to work on the OpenBSD ports tree too. Welcome, OpenBSD! While adding initial OpenBSD support was surprisingly easy once a few small issues were sorted out (use show=FOO\ BAR instead of chaining -V FOO -V BAR) I actually added some new features to it.

mPower static IP configuration

For many devices it’s nice to have them configured with DHCP, like mobile phones. But a powerbar’d better have an IP that won’t change… By default the mPower devices come with DHCP enabled (with fallback to 192.168.1.20), in this post we’ll have a look at setting a static IP address for both the mPower mini and mPower Pro devices. Now ssh into the device on their pre-configured or DHCP-obtained IP. If it’s not been connected to the mFi controller the defaults credentials are ubnt:ubnt.

Puppetized mFi controller

Recently I bought a Ubiquiti mPower which is part of their mFi-line of products for home automation. This comes with the mFi controller software which is a standalone Tomcat application used to control various mFi components. These can be smart powerbars, temperature/current/motion sensors, but also custom sensors (more on that later). Since this controller would need to be running 24/7 it seemed like a logical choice to install it on my home server and manage it with Puppet.