March 2019

Pushing Gist changes back up to Github

So this has kind of caught me a few times and thought I might stick it here as a future note to self. When attempting to push to a Gist using SSH authentication, the remote host needs to be in the format that support SSH. e.g; [email protected]:xxxxxxxxx.git Command to check: git remote v If the […]

March 2019

A collection of handy shell commands

A collection of shell commands I use to get things done in a snap (or close to) This command basically moves all files two directories deep up one level. Handy if a WordPress media library structure has changed and you have a lot of files to reorganise. The -i flag prompts you for confirmation where […]

December 2018

Conditional Broadcasting of Laravel Events

In a recent project using the Laravel framework, I've been getting familiar with WebSockets and came up against a situation where I needed to broadcast an event only when a certain property on a model had changed. I couldn't find this documented anywhere but, after quick dig into the \Illuminate\Events\Dispatcher class, I found the event dispatcher actually […]

November 2018

Structured objects in a post-Gutenberg world using ACF

Gutenberg. It's here. The editor we've all been huffing and puffing over is finally gonna land in WordPress core and damage all our livelihoods forever... ...or is it? Up until recently, I'd just kinda resigned myself to very basic testing with Gutenberg. I'd really just installed the plugin, created posts, and developed a feel for […]

October 2018

Using em units and media queries for simple UI scaling on responsive websites

When crafting custom-built interfaces, I find it incredibly convenient to be able to scale the entire thing down (in size) for devices below a certain width. On sites that have a lot of pixel-based CSS rules, this can be tricky as it can involve writing quite a lot of additional CSS inside a media query […]

June 2018

Time for a change: My new senior developer role with Digital Thing

Jobs aren't something I change very often. This isn't due to some fierce loyalty that I carry from role to role, nor is it because I'm easily contented with the predictability and certainty of a comfortable salary. Quite to the contrary: I need regular change in what I do; I need the opportunity that comes […]