Make git branch not behave like less

In Git 2.16, the git branch command was changed to use less by default.

I’ve long been annoyed by how git branch uses less (or, more correctly, whatever you have configured as a “pager” for your terminal) to show the list of branches. Apparently this was a change in default behavior introduced in Git 2.16.0: * git branch –list” learned to show its output through the pager by default… Continue reading Make git branch not behave like less

Published
Categorized as Git Tagged ,

WordPress image sizes

To get a list of all the registered image sizes in a WordPress installation, use: This returns something like this:

How to use private Bitbucket repos in composer

If you want to use a private Bitbucket repo in composer, you need to create a OAuth consumer key/secret pair in Bitbucket and configure composer to use that when fetching your repo. In composer’s docs there’s a helpful article: Authentication for privately hosted packages and repositories They again link to this page at Atlassian support:… Continue reading How to use private Bitbucket repos in composer

How to install premium WordPress plugins with composer

Premium versions of plugins such as ACF and Gravity Forms require special treatment, as they’re not in WPackagist. License keys First, add license keys to .env: To avoid exposing these keys on Whoops error pages, add an array called ‘debug_blacklist’ to Sage 10’s config/app.php file, for example under “Application Debug Mode”: ACF Pro // Instructions… Continue reading How to install premium WordPress plugins with composer

PHP Checklist

Some things to consider and remember when programming in modern PHP.

Bedrock

Steps to install Bedrock + Sage 10 locally using Laravel Valet.

Sage 10

This page is a place for me to collect various knowledge about Sage 10, as of yet not out of development.