Skip to main content

How to resolve a cURL certificate 60 error - curl: (60) SSL certificate problem

Post a NetSkope update, composer would fail when running any command that required accessing an external package.  Actually initially all external traffic was being blocked.  The error was similar to

curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

This error was also generated when running a basic command

Creating and applying a patch

I need to generate a patch and then apply automatically to my Drupal installation.

Current path to the file: web/core/modules/views/src/Plugin/views/argument/

Orignal filename: ArgumentPluginBase.php

Adjusted filename: ArgumentPluginBase-adjusted.php

 

Create a Patch

A patch is used to create or override changes in another file.  The command to create a patch is:

Drupal 9 to 10 upgrade an example of the actual steps taken

 

Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10.  However, the point of difference is this article works through the actual action steps of the upgrade.

Planning and testing is critical for the Drupal to version 10 process to work successfully.  As some of the environments that I work in are deployed via CD/CI pipelines.

error: pathspec did not match any file(s) known to git

Post creating a new branch in the repo, next step was to run the checkout command locally.  On my local environment I ran the following command

git checkout {branch-name}

However, the response was

error: pathspec '{branch-name}' did not match any file(s) known to git

 

sudo docker ps and exec -it

Working in an AWS ec2 environment, my goal is to access the server via terminal.

I initially work to get the instance ID.  With this ID, I'm able to connect to the server.  When first accessing the environment on the server the steps I take are:

sudo docker ps

ps - refers to the 'process status'

Response

Drupal set the private folder

How to set the Private file path in Drupal using the following steps:

  • Create a private folder in the web root
  • Add a .htaccess file to the private folder
  • Update the settings.php file

 

homebrew for speed tests

Using Homebrew for speed tests...

I'm using Speediest CLI - for more details go to https://github.com/sivel/speedtest-cli

To install speedtest CLI is is quick by running the following

brew install speedtest-cli

I had a few brew updates required as you'll see by the response below

How to create list of files that is recursive and output as txt file?

This issue

I have a folder with about 10,000 files in it.  I want to scan through the directories and isolate files that are different from what sits in the database.  How do you generate a list of file names of all the files into a single txt file?

 

how to solve - git response 'not something we can merge'

I'm in an environment where the default branch is staging and I'm attempting to run a git merge.  However, in actioning this command, I'm been greeted with the following response 'not something we can merge'

❯ git merge origin/{branch}
merge: origin/{branch} - not something we can merge

To resolve this, first I attempted to do a git checkout to the branch

Subscribe to Terminal