Yubikey + OpenVPN in Debian/Ubuntu

Posted by & filed under AWS/Linux/Unix/Devops stuff.

The instructions provided by Yubico for integrating two-factor auth with OpenVPN lack a PAM configuration for Debian based systems. The following configuration file (/etc/pam.d/openvpn) worked for me: auth required pam_yubico.so authfile=/path/to/yubikeys id=22010 debug auth required pam_unix.so try_first_pass debug shadow nodelay account required pam_unix.so

Loopback and prerender.io

Posted by & filed under AngularJS, LoopbackJS.

While the prerender.io team does not provide explicit directions for getting their service/NodeJS service to work with Loopback, it isn’t hard to do so. At the top of your top level bootstrap JS file, after the “app” variable is declared simply provide the following: app.use(require(‘prerender-node’).set(‘prerenderToken’, ‘<your token here>’)); Then, from the prerender.io service dashboard, add… Read more »

Building a music startup like a tech startup

Posted by & filed under Music.

I’m convinced that one could create some pretty compelling musical products and services in a similar manner to how one would build a tech startup, and that there are practical applications for musicians in thinking this way.

Repairing a Time Machine Volume

Posted by & filed under Mac OS X.

I get messages about needing to start a new backup frequently, and because I backup a lot of data this takes forever and is really annoying. I have found the following method for repairing a TM volume: chflags -R nouchg /Volumes/[yourshare]/[whatever].sparsebundle hdiutil attach -nomount -noverify -noautofsck /Volumes/[yourshare]/[whatever].sparsebundle fsck_hfs -drfy /dev/disk3s2 In the sparsebundle file is… Read more »

Making AngularJS content search engine/SEO friendly

Posted by & filed under AngularJS, Web Development.

There seems to be a lot of confusion over this, particularly what level of support exists for Javascript content with search bots. It appears that GoogleBot supports some Javascript. Using this NPM module will assist with providing a pre-rendered version of your content for search engine bots. Be sure to test this using the Google… Read more »

Posting to related models in Loopback Explorer

Posted by & filed under LoopbackJS.

I was trying to post to a model in the Loopback Explorer and certain fields referenced IDs from related models, only no matter what format my JSON was in my data was being inserted as an array where each index value corresponded to each letter in the string of text. I discovered that the cause… Read more »