M2M2: Attributes not showing

Published on 07 Aug 2019

If attributes don’t show up in the layered navigation and it isn’t due to the usual suspects, it’s probably a multiselect attribute. It probably got migrated as type text where it should be varchar. An easy SQL fix is this; See if this issue affects the website (you will get no records returned if you […]

Read more ...

M2: Fix Permissions

Published on 25 Apr 2019 , edited on 29 Apr 2019

Permission issues galore! Take these snippets, it’s dangerous out there!

Read more ...

Transfer files from GCP VM to another

Published on 03 Aug 2018 , edited on 22 Mar 2019

First, logon to the instance to move the files from and authenticate gcloud auth login Next run this command, on first try it will setup SSH keypairs and all gcloud compute scp file.ext [instancename]:/usr/share/nginx/html

Read more ...

Broke sound in Ubuntu 18.04

Published on 04 Jul 2018 , edited on 03 Apr 2019

Finding out my PulseAudio equalizer didn’t work after upgrading from 16.04 and trying to rectify that, killed my entire sound output. First, ran sudo apt-get remove –purge alsa-base pulseaudio sudo apt-get install alsa-base pulseaudio pavucontrol sudo alsa force-reload reboot Then sudo apt-get install pavucontrol pavucontrol But pavucontrol couldn’t connect to PulseAudio, something wrong with the […]

Read more ...

Github Gists broken again

Published on 21 Sep 2017 , edited on 22 Mar 2019

So I see that the Github Gists are broken again, when they load via AJAX. Soo, let’s go and fix it. https://bl.ocks.org/staeff/2b3ade0edcd3100f79c9 https://www.bennadel.com/blog/2312-loading-github-gists-after-the-page-content-has-loaded.htm

Read more ...

Ubuntu script for quick Gcloud Compute CLI access

Published on 21 Sep 2017 , edited on 03 Apr 2019

https://gist.github.com/ca9a77fe51e042562b46dffa2892d543 This lil’ function shortens the Gcloud Compute Engine SSH command to gc [instancename] and if no instance name is given, lists all instances.

Read more ...

jQuery slideOpen from fixed to auto

Published on 17 Oct 2016 , edited on 22 Mar 2019

I came across this little problem trying to do something that seems obvious; animate a div sliding open from a fixed height in pixels to a full auto height. Apparently this is something jQuery can’t do out of the box, at least not without some help. It uses a DOM node known as scrollHeight. In […]

Read more ...

QND: Style active page

Published on 13 Oct 2016 , edited on 22 Mar 2019

Sometimes you just need something quick’n’dirty, like this time I had to add an active class to totally unrelated items on a page, based on the page title.

Read more ...

Magento2 – Edit mailforms & templates

Published on 11 Oct 2016 , edited on 22 Mar 2019

http://stackoverflow.com/questions/35123779/how-to-add-subject-in-tranctional-email-template-for-magento-2-version http://magento.stackexchange.com/questions/114214/magento-2-how-to-declare-a-custom-email-template-for-your-module

Read more ...

jQuery onClick fires twice

Published on 15 Jul 2016 , edited on 22 Mar 2019

While doing some extensive JavaScript and jQuery work, I came across a testing console.log that kept firing twice. The most obvious reason would be that the script was rendered or included twice in the body, but it wasn’t. It was something more deserving of a facepalm. The element of the click function was a label. […]

Read more ...

Install Magento 2 via Composer on Apache server

Published on 23 Jun 2016 , edited on 22 Mar 2019

– Install SSH, GIT, NodeJS, Composer and Grunt on server – SSH to directory – composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition – Set rights – Run install command That’s about it. Now we have Magento 2.0.7 installed via Composer But I wanted to go up to 2.1rc3 for various reasons. To do this edit composer.json and find […]

Read more ...

Get Magento 2.1 running – the definitive guide

Published on 22 Jun 2016 , edited on 22 Mar 2019

The dust is starting to settle around the release of Magento 2 – the biggest open-source e-commerce packet available. Fate would have it that I’m getting more and more enrolled in the development of, with and applying this system for clients. So mainly for my own learnings this is a work-in-progress guide on all the […]

Read more ...

Note: Optimize Magento 2 for speed

Published on 14 Jun 2016 , edited on 22 Mar 2019

The main thing when ‘they’ developed Magento 2 was to improve on resource management and overall speed. Most people working with it, would scratch their heads in disbelief about it. Magento 2 can be painstakingly slow, but also rapid fast with the right configuration. It’s a known fact a Magento 2 developer needs to be […]

Read more ...

Note: Install Varnish on OS X

Published on 14 Jun 2016 , edited on 22 Mar 2019

– This article is a Note, which means it’s a work in progress or just a mental note to myself, mostly citing sources and recounting my steps in development – For a local Magento 2 installation I thought I’d try to install Varnish on OS X and found this guide to do so. It tells […]

Read more ...

Magento 2 Snippets

Published on 02 Jun 2016 , edited on 18 Jun 2019

In it’s complexity I find one can lose a lot of time in just looking for the right mark-up for the right situation. That’s why I decided to make this little ‘scrap-book’ of snippets. Overwriting files Overwriting files in Magento 2 isn’t as straightforward as was with Magento 1. There you just had to have […]

Read more ...

Shell cheatsheet

Published on 20 Apr 2016

Working with SSH (Shell) commands can be extremely powerful and timesaving if you do it right. If you do it wrong, though, it can be disastrous. It also can be time consuming if you have to look up the right commands for each job all the time. That’s why I created this little cheatsheet, which […]

Read more ...


Short notes and snippets as reminders for myself and my work.

All categories

All tags

All posts