Installing SSL an cert on a LAMP Docker container (Apache)

This is a WIP / rough draft. In this post I’ll run over installing an SSL cert for a web server (Apache), that is running inside a docker container (the docker container is running on a Linux server AWS Amazon Linux EC2). to install certbot on amazon linux https://unix.stackexchange.com/questions/741450/installing-lets-encrypt-on-amazon-linux-2023 (see Jens Answer) once installed run: … Read more

Css Grids Cheatsheet

I’ve just started using grids. So this is just a handy place to store examples. Easy Table (with equal width columns) I’ve set it to be 3 columns ( grid-template-columns ) The first 3 divs are placed into columns 1,2,3. It then moves onto next line/row, and repeats this pattern. Quiz 1 Some blurb about … Read more

In WordPress Recent Posts Widget , only show posts tagged with the current page url

/******* filter posts by tag based on page url ***********/ add_filter(‘widget_posts_args’, ‘wpsites_modify_recent_posts_widget’, 100000); function wpsites_modify_recent_posts_widget($params) { $url = sanitize_text_field($_SERVER[‘REQUEST_URI’]); $last_word = basename($url); error_log(“last word = $last_word”); $tags_filter_by = array(‘who’,’what’,’when’,’where’,’why’,’how’); // only do for these pages if(in_array($last_word, $tags_filter_by) ){ //$params[‘tag’] = ‘bread,baking’; posts with any of these tags $params[‘tag’] = trim(strtolower($last_word)); error_log(“filtering to only show posts … Read more