Setting up youtube-dl for downloading videos and MP3s from Youtube Videos, on macOS

Download and configure youtube-dl:
(Ref.: https://github.com/ytdl-org/youtube-dl)
(Requires ffmpeg pre-installed for the mp3 conversion to work).

Download the latest nightly into ~/youtube-dl and add proper aliases:
From https://github.com/ytdl-org/ytdl-nightly/releases/latest, download the latest "youtube-dl" file.
Now it was https://github.com/ytdl-org/ytdl-nightly/releases/download/2024.04.22/youtube-dl.

Creating a "Related Content" Block Using Views in Drupal 8/9/10/11, based on a common content reference

This guide will walk you through creating a "Related Content" block on the node view page of a content type in Drupal. The block will list other nodes of the same content type that share a common reference.

Definition:

To create a "Related Content" block using Views in Drupal 8/9/10/11, to be shown on the node view page of one item (node/entity) of content type A,
that lists other items (nodes/entities) of the same content type A which all share the same content reference to some other particular node/entity, as that on the initial item under consideration.

Ashes than dust!

"I would rather be ashes than dust! I would rather that my spark should burn out in a brilliant blaze than it should be stifled by dry-rot. I would rather be a superb meteor, every atom of me in magnificent glow, than a sleepy and permanent planet. The proper function of man is to live, not to exist. I shall not waste my days in trying to prolong them. I shall use my time."
- Jack London American author, journalist, and social activist 1876 - 1916

How to add an email signature in Thunderbird, with embedded images and text

There are two ways of adding images to your email signature, in Thunderbird:

One method is to use the HTML img tag to show an image hosted elsewhere.
But this method has the disadvantage that email clients sometimes block loading resources called from external URLs.

The second method, which does not have this problem, is by embedding a base64 encoded version of the image into the HTML body itself, and then using this single HTML file as your email signature.

Good things, Great things

When Good People come together, Good Things happen.

And when Good People come together for a noble cause, Great Things happen.

Protect your Eyes, the FOSS way! ;-)

When we live most of our lives in front of screens, they bring us a lot of 'occupational hazards':
Our eyes, wrists and backbones are the most affected.
And that is where the importance of good ergonomic practices come into being.
There have been a lot of innovative solutions devised around it, and here are two to protect your eyes:

SafeEyes - https://itsfoss.com/reduce-computer-eye-strain-linux/

Making use of Drush to save time as a Drupal Site Builder / Themer / Developer / DevOps

Drush can be one of the nicest tools to have, when you want to speed up quite a lot of your daily Drupal operations.

Here are some of the usages I've come across, for Drupal 7:

Clearing cache:

# clear all caches
drush cc all

# rebuild caches
drush cr

Download and enable modules:

# download module modulename
drush dl modulename

# enable a downloaded module
drush en modulename

# to skip the Yes or No confirmation questions:
drush -y en modulename

Be curious. Make more mistakes. Learn from everything.

How to monitor CPU temperature in Ubuntu 14.04

CPU temperature is usually good between 40 to 50 degrees Celsius.

To monitor CPU temperature, you can use the following:

Install lm-sensors:

sudo apt-get install lm-sensors 
sudo sensors detect
sudo service kmod start
sensors

The latest version of psensor includes the ability to show individual sensor value along with the indicator icon.
To install that:

Tags:

Learning Life - Focus

The world is full of interesting things.

Things that excite you. Things that make you happy.

Things that make you wonder. Things that make you dream.

And the list never ends.


But the men we are, the time that we have on this earth is limited.

And it is upon us, to prioritise.


To focus on what is most important to us, and to say no to what is not.

So that we can do best on what matters the most.

That, when you look back one day, you'll be the most happy.


Pages

Subscribe to antojose.com RSS