printenv
Author: runcodeguy
How to move files or directories to a directory on Ubuntu
mv -nv files... directories... directory
How to create directories on Ubuntu
mkdir -p dir1 dir2 dir3/dir4/dir5
How to delete files and directories on Ubuntu
rm -rf Files... Directories...
How to create files on Ubuntu
touch Filename
How to rename a file do not overwrite an existing file on Ubuntu
mv -nv old new
How to install Composer on Mac
brew install composer
How to check if there are available updates for Composer and NPM in Laravel
composer update --dry-run &&
npm update --dry-run
How to check if there are available updates for WordPress core, plugins, and themes
wp core check-update &&
wp plugin update --all --dry-run &&
wp theme update --all --dry-run
How to add code syntax highlight.js to WordPress
wp-content/themes/ActiveTheme/functions.php
function enqueue_highlight_js()
{
wp_enqueue_style('highlight.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/base16/outrun-dark.min.css');
wp_enqueue_script('highlight.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js');
}
add_action('wp_enqueue_scripts', 'enqueue_highlight_js', 100);
function initiate_highlight_js()
{
?>
<script>
hljs.highlightAll();
</script>
<?php
}
add_action('wp_head', 'initiate_highlight_js');
<pre><code>source code...</code></pre>