r0b's random ramblings

This is a place for me to jot down thing's I've experimented with and document them for my future self ... or other people too I guess.

Creating custom JavaScript errors

Sunday, 12 September 2021

Custom errors are a powerful tool in JavaScript. Here's how to create them with modern ES classes and static methods.

Compile Sass with eleventy

Tuesday, 25 May 2021

How to add Sass/Scss to an Eleventy project and integrate it with the development server for automatic reloading.

Running Node.Js as a systemd service

Monday, 16 November 2020

I had a Node.js app that I wanted to run when my Raspberry Pi Zero started up in a minimal manor. Here's how I created a systemd service to do it.

My first generator function

Saturday, 25 July 2020

I finally did it, I found a use for JavaScript's generator functions, wrote one and now its deployed!

Spoofing a Raspberry Pi's mac address

Saturday, 22 February 2020

Sometimes you just want to fake a raspberry pi's mac address to appear as something else on the network. This is how to do that.

A minimal kiosk mode for a Raspberry Pi

Monday, 20 January 2020

When you need a Raspberry Pi to just display a webpage, you don't really need an entire operating system and window manager. This was my solution.

Using jsx WITHOUT React

Sunday, 12 January 2020

I wanted to do some lightweight javascript recently and didn't want to use a massive framework. Creating all my DOM elements manually was laborious and ugly so I setup jsx to do it for me.