• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)

Notify When Command Completes

Last updated on October 10, 2023 by Sal Ferrarello

When I kick off a long running process on a project (e.g. “npm install”) and I shift my focus somewhere else, I often get absorbed in my other task and don’t return to the original process as soon as I wanted to. I’ve addressed this in the past by setting a timer to remind me to come back and check. More recently, I’ve started adding a audio notification to tell me when the task is completed.

Filed Under: Computing, Dev Tips, Solution Tagged With: command line

Find dependency in composer.json with jq

Last updated on October 1, 2023 by Sal Ferrarello

Sometimes I need the full Composer dependency name but I only know part of it. For example, I may know Block X-ray Attributes is a Composer dependency but I don’t remember the full package name. While I could open the composer.json file and find the dependency, I can also leverage jq to do the work for me.

Filed Under: Computing, Dev Tips, Solution Tagged With: command line, jq, jq composer, zsh

My Most Valuable Git Aliases are Shell Aliases

Last updated on September 24, 2023 by Sal Ferrarello

While Git supports aliases and I am a big fan of Git aliases, (e.g. ‘git lg’), the most valuable to me (and most used) aliases are shell aliases (e.g. ‘gc’ for ‘git commit’).

Filed Under: Computing, Dev Tips, Recommendations Tagged With: command line, Git, git alias, zsh

GitHub Tab Size Preference

Last updated on September 15, 2023 by Sal Ferrarello

As a WordPress developer, I deal with lots of code indented with tabs (rather than spaces). By default when viewing these files in GitHub, each tab is rendered as 8 spaces. On my personal machine, I render each tab as 4 spaces. This difference makes it less pleasant to view code in GitHub, however, I just learned I can set my preferred tab rendering in GitHub!

Filed Under: Dev Tips, Programming Tagged With: GitHub

Git Rebase and the Multiverse

Last updated on September 17, 2023 by Sal Ferrarello

In “Git Merge and the Multiverse” I looked at merging branches and how sometimes this results in a fast-forward merge and sometimes in the creation of a merge commit. Now let’s look at Git rebase (a.k.a. the power to rewrite history).

Filed Under: Computing, Dev Tips, Programming Tagged With: Git, rebase

Git Merge and the Multiverse

Last updated on September 17, 2023 by Sal Ferrarello

If you’re a fan of science (or science fiction), you may be familiar with the concept of the “Multiverse”, the idea that there are multiple universes. In some science fiction stories, one universe can split, branching into multiple universes and then later collapse into a single universe, this is a surprisingly good analogy for Git and branching.

Filed Under: Computing, Dev Tips, Programming Tagged With: Git

Set Number of Characters in Commit Hash for git log

Last updated on December 6, 2023 by Sal Ferrarello

When I’m writing examples, it is often nice to have very short commit hashes. The ‘–abbrev=4’ argument, passed after the ‘–oneline flag, allows me to reduce the number of characters in the commit to 4.

Filed Under: Computing, Dev Tips Tagged With: Git

WordPress Multisite Skip Confirmation Email

Last updated on August 1, 2023 by Sal Ferrarello

When creating a new user on WordPress multisite there is a “Skip Confirmation Email” checkbox that is unchecked by default. This unchecked box results in a user being added to a temporary “signups list” when they are added to the site. The user is not fully added to the site until they complete the confirmation steps in the email they receive. For many sites, it is preferable to check this “Skip Confirmation Email” when adding a user. With some code you can set this checkbox to default to checked.

Filed Under: Programming, Solution Tagged With: WordPress, WordPress Multisite, WordPress Plugin

Sal looking puzzled holding the book The Murder Of Roger Ackroyd.

I Feel Mislead by Agatha Christie

Last updated on July 31, 2023 by Sal Ferrarello

I feel mislead by Agatha Christie. I’m over halfway through reading “The Murder of Roger Ackroyd” and there hasn’t been a single crow yet.

Filed Under: Funny Tagged With: original joke

GitHub Link to Commit instead of Branch

Last updated on August 15, 2023 by Sal Ferrarello

When linking to specific lines in a file to GitHub, it is preferable to link to those lines in the file for a specific commit (rather than for a specific branch). This is because the contents of a branch can change but the contents of a commit remain the same forever.

Filed Under: Computing, Dev Tips, Recommendations Tagged With: GitHub

  • «Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Interim pages omitted …
  • Page 46
  • Next Page»

Copyright © 2026 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in