Elasticsearch cheat sheet Search Count AND query OR query Query with date range Sort by a date containing field Query with regex Point In Time This generally creates a snapshot of the current...
Left join with query builder In my “new” job – we’re working entirely with Symfony, thus I decided to get my hands dirty and rewrite my eternal “Car Expenses” project in Symfony. What I found...
PHP Recursive copy/delete functions In a recent project I needed quite often to delete or copy whole directories. And since PHP doesn’t seem to have such – I created these: Remove Directory Copy Directory
Pull GitHub repository with code I’m currently developing a company WordPress plugin platform, which should allow you to update and manage company proprietary plugins without making them public in WP’s plugin repository.As part of it...
Gutenberg Custom Post Block WordPress FSE is still in its infancy and its functionality for archive loops is really limited. We needed a query loop that displays different content under different circumstances, which neither...
HTTPS on localhost The usage of https is the norm now, and so more and more we’ll need to use HTTPS even for local development. So after some mixed results – this guide...
WordPress Logging Helper Recently I developed a simple plugin, and to ease debugging – I decided to create a simplistic logging solution. This came in the form of a helper class, that I...
Simple Masonry This sill achieve a simple masonry layout, similar to those of Pinterest. The grid will be three rows in large screen sizes, two rows in medium screen sizes and one...
The Hal Paradox This has probably happened to everyone, not just in IT – when you start working on one thing, find another problem, which leads to another, and in four hours you’re...
Resources This will be a list of useful articles and resources, I’ll continuously populate. The idea for this is to contain stuff I don’t need to remember, or bookmark across the...
Linux debugging cheat sheet I gotta admit – I “stole” this from nixCraft. But it’s so brilliant, I just need to share/keep it.
Casting As a not so experienced PHP dev – there are plenty of things I learn on daily basis, but one thing I should really remember using is casting.Basically casting i...