How To Find Commits With Code Containing a String

Author: , Posted on Friday, February 7th, 2020 at 2:27:34pm

How To Find a Git Commit ID in Branches and Merges

Author: , Posted on Friday, February 7th, 2020 at 1:15:27pm

First, get on the branch that you know already has the commits you are looking for:

Copy-and-paste the commit(s) you want:

~or~

Optionally, display the code changes for a visual confirmation:

Finally, extract the list of branches that contain the desired commits:

Example:

How To Show the Origin in Git

Author: , Posted on Thursday, January 30th, 2020 at 11:35:47am

Recently, I wanted to see the “origin” of the git repository I was working in.

The command is: git remote -v

For example:

How To Disable WordPress Profile Access for Subscribers

Author: , Posted on Friday, January 24th, 2020 at 3:44:55pm

How To Update a WordPress Plugin Manually Using rsync

Author: , Posted on Friday, January 24th, 2020 at 11:17:25am

If you are unable to update a plugin via the WP admin console, then you can do the update manually.

Download the zip file to your local hard drive and extract it.

Then, from the command line, do the test run first:

*Make sure to use the trailing slashes with rsync for proper operation with directories.

Validate the output, then remove the --dry-run and do it for real:

How To DROP DATABASE LIKE In MySQL

Author: , Posted on Tuesday, January 21st, 2020 at 6:01:23pm

How To Fix Bamboo Start Errors After Java Upgrade

Author: , Posted on Tuesday, January 21st, 2020 at 10:40:40am

PROBLEM DEFINITION

Bamboo Catalina error found in catalina.out:

SOLUTION SUMMARY
Correct by using Java 8 instead.

Do it manually using alternatives --set, or interactively using alternatives --config.

MANUAL PROCEDURE – two steps, one for java and one for javac

INTERACTIVE PROCEDURE – two steps, one for java and one for javac

How To Fix “TypeError: Language code” JavaScript Errors in WordPress

Author: , Posted on Monday, January 20th, 2020 at 8:08:13am

PROBLEM
Wordpress site broken with Javascript errors with zero plugins or themes installed.
The issue followed different devices, OS’es and different browsers.

SOLUTION
User account corrupted.
The wp_usermeta locale field had an invalid value of “regular”, and nulling the field solved the issue.

DETAILS
JS console shows this:

How To Use a PEM File With rsync

Author: , Posted on Friday, January 10th, 2020 at 2:30:39pm

Use the -e option like so:

How To Convert An RSA Private Key to PEM Format

Author: , Posted on Friday, January 10th, 2020 at 12:04:42pm