Stuff I'm Up To

Technical Ramblings

Node.js v8 on Raspberry Pi Zero — June 27, 2018

Node.js v8 on Raspberry Pi Zero

With Raspbian on my Zero I only get Node v4 in the repository. So How do I get a newer version of Node.js?

If I follow the standard Node instruction for installing from a repository I get:

$ curl -sL | sudo -E bash -

## Installing the NodeSource Node.js 8.x LTS Carbon repo...

## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from for Node.js 4 and later.

So it looks like I must download the tar.xz file.

Continue reading

Raspberry Pi Wifi at boot — June 26, 2018
Extreme – MLAG and VRRP — June 21, 2018
Nuclide — June 10, 2018 — June 7, 2018

Why is it I only find stuff that would have been really useful, after it would have been really useful?

I’ve written plenty of html using handcrafted text. Started using atom to help with auto-completion and beautify. Then I run into Emmet.

Atom has this great plugin, and it’s available for many other editors, that makes html coding an absolute breeze. Many times I find myself creating html template sections repetitively repeating lines for navs, closing tags adding classes etc. Emmet can easily handle the repetitive html structure by tying in what would almost be the CSS shortcut of the structure and expanding it.

Once the plugin is installed into atom you can interactively enter a shortcut using ctrl+alt+enter which will bring up the interactive editor – probably the easiest starting point. Then type in the short cut in the CSS selector style eg.


And watch this magically create the beginnings of a Bootstrap nav menu with 3 drop down menus with 5 items on each menu – from one line of understandable code.

Very, very cool. Will take me some getting used to but should speed up the creation of large repetitive structures no end.

I’m already pretty excited about using it for Vue.js components too!

Find more details here:

Composer Require Specific Branch — June 4, 2018

Composer Require Specific Branch

I’m trying to test out a version of a SAML project that doesn’t include the now defunct php extension for mcrypt. Using composer require kept on grabbing the master branch, when I actually wanted the “remove_mcrypt” branch.

I found that using composer with the branch like this failed:

$ composer require "aacotroneo/laravel-saml2":"remove_mcrypt"

Could not parse version constraint remove_mcrypt: Invalid version string “remove_mcrypt”

Thanks to a stackoverflow post: I was able to resolve it by correctly prefixing the branch with “dev-

$ composer require "aacotroneo/laravel-saml2":"dev-remove_mcrypt"