WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Creating a patch to a Drupal contrib module

Submitted by barnettech on Wed, 05/29/2024 - 16:52
To apply a patch from an existing merge request on Drupal's GitLab repository to your project while waiting for it to be merged, you can follow these steps:

1. Download the Patch
From the merge request page (https://git.drupalcode.org/project/samlauth/-/merge_requests/18/diffs), you can usually find an option to download the diff or patch directly. If you're viewing the merge request:

Click on the "Changes" tab.
Right-click the "Download" button at the top right of the diff display and select "Save Link As..." to download the patch file.
2. Save the Patch Locally

Using two github accounts on the same machine

Submitted by barnettech on Mon, 04/08/2024 - 23:50

When dealing with multiple GitHub accounts on a single machine, managing SSH keys can get a bit tricky, but it's definitely manageable with a proper setup. Since ssh-add -l is showing the wrong GitHub user (or rather, the wrong SSH key for your current context), you'll want to set up SSH to use different keys for different GitHub accounts. Here’s how you can do that:

### 1. Generate a New SSH Key (if needed)
If you haven't already, generate a new SSH key for your second GitHub account. Skip this step if you've already generated a separate SSH key for each account.

What is the allegory of spoons

Submitted by barnettech on Sat, 03/09/2024 - 17:07

The allegory of the long spoons is a parable that shows the difference between heaven and hell by means of people forced to eat with long spoons. It is attributed to Rabbi Haim of Romshishok, as well as other sources.[1]

The allegory can be summarized as follows: