Inline CSS and JS in Hugo for better page performance Inline CSS Here is a trick of how to avoid the render blocking CSS file being loaded (and reported in Lighthouse) on your Hugo site. Inline the CSS using resources.Get function. The following … #misc #snippet
How to ask user for confirmation in Magento 2 console command This is a short post showing how to ask user for the confirmation when running Magento 2 console command. The typical use case for this is “Are you sure you want to continue? (y/n)” … #magento2 #snippet
Rendering the Magento 2 console command output as a table Here is a quick example of how to render the Magento 2 console command output as a table. This can be useful in a number of situations where the resulting data is tabular. To achieve this, … #magento2 #snippet
How to add custom "table-like" configuration field in Magento admin In this post I’ll show you an example of adding custom “table-like” system configuration field in Magento admin. And by “table-like” I mean something like this: If … #magento
Changing the trigger DEFINER in Magento database dump If you’re about to work with Magento EE 1.13+ & have the database dump on your hands, you might want to check & change the trigger DEFINER statements of it. It will save you from … #magento
Willow - free, responsive and minimalist Ghost blog theme Looking for a ghost blog theme? Here’s an open-source, responsive & minimalist theme I built for this exact blog. Get the Willow theme from my GitHub. I tried to keep the theme as … #misc
Returning JSON response from Magento controller action Here’s quick example of how to return JSON response from Magento controller action. Assuming you have already created appropriate XML configuration and controller class/file, just add the … #magento #snippet
Add custom product, category and CMS page tabs in Magento admin Adding custom product, category or CMS page tabs in Magento admin can be challenging task if you haven’t done it before and do not know where to start. Here’s an example of how it … #magento
Hosting Ghost blog with Nginx & LetsEncrypt Here’s a sample Nginx configuration for Ghost blogging platform, that includes: 1) standard proxy configuration to successfuly host Ghost blog; 2) redirect “www” to … #server #snippet
Fix the locale warning on a new DigitalOcean droplet If you’ve just created a new Ubuntu 14.04 DigitalOcean droplet and are installing or upgrading some packages, you’ll notice this annoying warning being shown in console: perl: … #server