Why turn off thumbnails? I'm using AVIF files generated locally on my Mac before uploading to my blog, the images are compressed and already have my desired size. Out of the box WordPress attempts to create a smaller version (even when the Settings > Media are all set to 0 size). I suspect this trick […] The post How to turn off thumbnail generation in WordPress appeared first on Ricard Torres dev.| Ricard Torres dev
I have my own virtual server (VPS) with netcup (not sponsored). I have been enjoying the rather low price for about two years. A few weeks ago I went to| Ricard Torres dev
For a long time I’ve tried to code my own “workout” solutions to track my sessions, be it creating a timer app, listing workouts, or just tracking my daily exercise. The other day I had an epiphany and thought I could use GitHub Issues in combination with GitHub Actions to create a daily routine using […] The post Daily workout with GitHub Actions appeared first on Ricard Torres dev.| Ricard Torres dev
Here's a quick snippet to allow you change the HTML of a page before Cypress fires your tests. In an ideal world you would want to have different server side rendered HTML pages and you would just call page-1.html and page-2.html but in my case the component I'm trying to test inherits a configuration from […] The post How to overwrite HTML with Cypress appeared first on Ricard Torres dev.| Ricard Torres dev
The other day I wanted to post several links and posts on Mastodon. I didn't want to flood my followers' timeline with my face several times in a row. So I thought, I'd love to have a way to schedule posts on Mastodon 🤔 So far there doesn't seem to be a way to do […] The post How to schedule posts with Mastodon appeared first on Ricard Torres dev.| Ricard Torres dev
After starting to host my own private Mastodon instance it became clear that disk usage was going to be problem. I eventually moved all the assets to an S3 compatible Object Storage. Now I'm moving away from Backblaze B2 as a S3 provider to Scaleway. I wanted to highlight why and how I did it, […] The post Moving S3 from Backblaze B2 to Scaleway appeared first on Ricard Torres dev.| Ricard Torres dev
The current (4.0.2) Mastodon profile page is bad. Bad because it requires JavaScript to load. If you want to go back in time and look at your own posts it's not convenient, it's just slow. I find myself wanting to find old posts to re-share or revisit often. So I decided to first build a […] The post Creating a static Mastodon user’s archive appeared first on Ricard Torres dev.| Ricard Torres dev
The out of the box Mastodon does not come with sitemap.xml generation built-in. If you want to push a user's sitemap to Google or other search engines here's how to do it. 💡 My setup is meant to be for a single-user Mastodon instance. 🤔 Why? It's simple, I don't have Elastic Search set up […] The post How to create a Mastodon user sitemap.xml appeared first on Ricard Torres dev.| Ricard Torres dev
Here my highlights of the VPS move last week. You will see a lot of cons which are negated by the fact that pricing and hardware is that much better deal. For context, I have been a Linode customer for like 10 years. The customer service has been good, the dashboard is nice and they […] The post Moving from Linode to netcup appeared first on Ricard Torres dev.| Ricard Torres dev
⚠️ I have written a follow-up post moving from B2 to Scaleway as Object Storage provider. This post is still valid, the only thing is I'm not longer using B2, which might be perfectly fine for your needs 👍 When I installed my private personal Mastodon instance y quickly noticed Mastodon has storage issues, so […] The post Scaling Mastodon: moving media assets to Object Storage appeared first on Ricard Torres dev.| Ricard Torres dev
A Webmention enables enables cross-site conversations. Letting site A know that site B is mentioning them (be it via link, a like, a re-post... there are many times of mentions). One of the cool use cases is to link your Fediverse account (Mastodon, in my case) with your blog. So every time you share a […] The post How to add web mentions to your WordPress site appeared first on Ricard Torres dev.| Ricard Torres dev
⚠️ Read this before deep diving I've been dealing with Mastodon's high disk usage for the last week. Have a read before installing your own Mastodon instance. I would recommend checking out Pleroma and Akkoma before taking a decision. They have way less system requirements than Mastodon. EDIT November 8th Self-hosting That's right, I know […] The post Hosting my own Mastodon instance appeared first on Ricard Torres dev.| Ricard Torres dev
Two years ago I created a small site to track what movies and shows I watch. I did it with Gatbsy because well, it was a new thing for me and I wanted to experiment with Jamstack. The idea is to create a new Markdown file for each movie or tv episode watched. A TV […] The post Migrating from Gatsby to custom Node.js script appeared first on Ricard Torres dev.| Ricard Torres dev
🚫 Problem Having to manually 😴 create unique images for Social Media (Open Graph) for your new blog posts. ✅ Solution Let's use Node.js to engineer a script to take care of this for us 😎 ❤️ Generated image This is the final result, a dynamically generated image: 🤔 How does this work? A part […] The post How to dynamically generate images with Node.js appeared first on Ricard Torres dev.| Ricard Torres dev
So you're learning about Critical Rendering Path, you have already optimized your WordPress theme's stylesheet but still there are WordPress core CSS files that you want to lazy load. I have a present for you 🎁 One of several techniques is to load the stylesheet using media="print" which tells the browser this file is meant […] The post Defer CSS loading with WordPress appeared first on Ricard Torres dev.| Ricard Torres dev
The following snippet will list your Hugo site pages ordered by last modification date. You simply have to reverse it and limit to your liking. Shortcode themes/YOUR_THEME/layouts/shortcodes/last-edited-pages.html How to use? The post How to list recently edited pages in Hugo appeared first on Ricard Torres dev.| Ricard Torres dev
For static generated sites I'm loving more everyday Hugo. It's speed and zero JavaScript dependency (unlike Gatsby) is just what the doctor ordered. I have a private wiki for my, well, not public notes. The first version was done with WordPress (I even open sourced the theme). It worked okay, nice writing experience, one click […] The post Moving from Docusaurus to Hugo appeared first on Ricard Torres dev.| Ricard Torres dev
If you read books you have perhaps heard about Goodreads.com, the site has book reviews, season awards, and more. The most interesting part is that you can track you read, currently reading and want to read books. Yes, you could use a notepad or a spreadsheet 🤷♂️ but using the site is nice. You can […] The post Generating book lists from my Goodreads profile appeared first on Ricard Torres dev.| Ricard Torres dev
One of my daily morning routines is to scan several news sites and read headlines to see if anything piques my interest. Or at least to have a vague recollection of topics happening nowadays. I go to Hacker News, The Verge, The Guardian… and others. A mixed bag, really of tech and world news. Because […] The post How to create a news digest using RSS and GitHub Actions appeared first on Ricard Torres dev.| Ricard Torres dev
Mastodon's built-in CLI gives you the availability to clean attachments and previews from remote accounts, purging the disk cache. This is fantastic and| Ricard Torres dev