Entries Categorized as 'How-To’s'

How To DROP DATABASE LIKE In MySQL

Author: , January 21st, 2020

How To Fix Bamboo Start Errors After Java Upgrade

Author: , January 21st, 2020

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: , January 20th, 2020

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: , January 10th, 2020

Use the -e option like so:

How To Convert An RSA Private Key to PEM Format

Author: , January 10th, 2020

How To Properly Specify Command and Arguments to Exec in Perl

Author: , December 11th, 2019

When using Perl’s exec() call, the best way to invoke it is as follows:

This syntax does some important things: – passes a scalar value as the first argument which exec interprets as PROGRAM – passes an array as the second argument which exec will use as the arguments to pass into PROGRAM Note […]

How To Change Your Commit Message in Git

Author: , December 2nd, 2019

Not pushed + most recent commit:

How To Force vim to Convert Tabs to Spaces

Author: , November 26th, 2019

To create indents with 4 space characters which are entered by pressing the TAB key:

To make the above settings permanent add to your ~/.vimrc file. For more details on any of these see :help ‘optionname’ in vim (e.g. :help ‘tabstop’) tabstop The width of a hard tabstop measured in “spaces” — effectively the […]

How To Remove the MacOS Quarantine Extended File Attribute for an Entire Directory Tree

Author: , November 24th, 2019

xattr -r -d com.apple.quarantine {dirname} ~or~ xattr -r -d com.apple.quarantine *

How To Prevent WordPress from Applying wpautop to a Page or Post

Author: , November 19th, 2019

All credit to Graham Walters for this excellent plugin and post, upon which this post is based – thank you, sir! https://grahamwalters.me/lab/disable-wpautop-on-specific-postspages/ Recently, a client was having problems using a plugin called by a shortcode. As it turned out, the JavaScript embedded in the returned content was being broken by the WordPress auto-paragraph feature known […]