• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for Dev Tips

Dev Tips

Get Jira Issue Title via REST API

Last updated on February 11, 2024 by Sal Ferrarello

I wanted to programmatically retrieve the title of a Jira issue in a script I was working on. These are my notes on how I did it.

Filed Under: Dev Tips, Programming, Solution Tagged With: Jira, REST API

Alfred Paste Without Clipboard

Last updated on February 9, 2024 by Sal Ferrarello

One of my frustrations with the Alfred App is when I create a custom workflow to paste a string into the current application the old clipboard value is overridden with the new string. What I want is to paste the string in the currently active app, without replacing the content in the clipboard.

Filed Under: Computing, Dev Tips, Solution Tagged With: Alfred

Quick and Dirty WP CLI

Last updated on January 19, 2024 by Sal Ferrarello

During development or troubleshooting I often find myself wanting to run something through WP CLI. These are some notes on running code through WP CLI.

Filed Under: Dev Tips, Programming Tagged With: WordPress, wp-cli

Convert Markdown to Plaintext

Last updated on January 9, 2024 by Sal Ferrarello

I recently had to convert some markdown into plaintext and rather than use an online tool I wanted to do it locally. This is the solution I found.

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

Use a Different Editor for Git Interactive Rebase

Last updated on December 9, 2023 by Sal Ferrarello

I’m a big proponent of changing your Git editor, so whenever Git opens an editor, it is your editor of choice. In Git version 2.40, released in 2023, an additional configuration value was added “sequence.editor” to define a different editor specifically for Git Interactive Rebase (not any other time).

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

Git Alias Can Not Change Directory

Last updated on December 1, 2023 by Sal Ferrarello

I wanted to add a Git alias that does a “git clone” and then “cd” to change into the new directory. However, while the “git clone” worked fine, the directory change did not. It turns out you can NOT change directories from within a Git alias.

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

Sort Git Tags by Version

Last updated on October 21, 2023 by Sal Ferrarello

By default Git displays tags in alphabetical order, but we can configure Git to sort tags by their version numbers.

Filed Under: Dev Tips, Solution Tagged With: Git, gitconfig

Git matched multiple remote tracking branches

Last updated on October 24, 2023 by Sal Ferrarello

Sometimes when I run a command like “git checkout chore/fix-typo”, I get an error message like “fatal: ‘chore/fix-typo’ matched multiple (2) remote tracking branches”. We can configure Git to avoid this error by defaulting to the “origin” remote.

Filed Under: Computing, Dev Tips, Solution Tagged With: Git, gitconfig

cd in script without polluting previous directory

Last updated on October 5, 2023 by Sal Ferrarello

I wanted to write a shell alias to get the Git status of a specific directory (~/code/projectx). How could I change directories without polluting the previous directory? (so ‘cd -‘ still works as it did before I ran my alias)

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

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

  • «Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 25
  • Next Page»

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