• Skip to primary navigation
  • Skip to content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Archives for Computing

Computing


Warning! This is a draft, not a finalized post. See full draft disclosure.

Git Previous Branch

Last updated on February 11, 2019 by Sal Ferrarello

When working with Git on the command line, I spend a lot of time switching back and forth between two branches. Even with Git tab completion, it is a lot of typing. However Git has a shortcut for the previous branch, a single dash (-).

Filed Under: Computing, Dev Tips, Draft, Recommendations Tagged With: command line, Git

Screenshot of selecting "Shell Command: Install ‘code’ command in PATH" in Visual Studio Code.
Warning! This is a draft, not a finalized post. See full draft disclosure.

Git Commit Message Editor

Last updated on January 7, 2019 by Sal Ferrarello

By default Vim is the editor used when writing a Git commit message. While I love Vim, it does work very differently than most other editors. A good option for those who are not comfortable with Vim, is to use a different editor. This is how to setup Git to use a different editor.

Filed Under: Computing, Dev Tips, Draft, Programming, Recommendations, Solution Tagged With: Git, nano, Visual Studio Code


Warning! This is a draft, not a finalized post. See full draft disclosure.

Vim, tmux, iTerm broken colors

Last updated on December 17, 2018 by Sal Ferrarello

I do most of my work in Vim (or Neovim) in tmux inside of iTerm on my Mac. I found my color schemes were being properly applied in Neovim but not in Vim (version 8). Adding two lines to my .vimrc corrected the problem for me.

Filed Under: Computing, Dev Tips, Draft, Solution Tagged With: tmux, vim

Screenshot of Git Log and Git Rebase Interactive showing in one case the newest commit is at the top and in the other case the newest commit is at the bottom.

Git Interactive Rebase Order is Wrong

Last updated on January 14, 2019 by Sal Ferrarello

The interactive rebase feature of Git is one of my favorites. I love being able to squash multiple commits into one commit or re-order my commits for clarity. My one complaint is the Git interactive rebase commit order is wrong (at least for the way my brain works).

Filed Under: Computing, Dev Tips, Recommendations, Solution Tagged With: Git, rebase


Warning! This is a draft, not a finalized post. See full draft disclosure.

SSH after Mac OS X Update

Last updated on December 10, 2018 by Sal Ferrarello

I recently updated my copy of OS X to Mojave and I’m now having trouble with SSH. (I jumped a few versions but based on other posts it looks like the change to MacOS Sierra specifically was part of the problem).

Filed Under: Computing, Draft, Solution Tagged With: mac, ssh


Warning! This is a draft, not a finalized post. See full draft disclosure.

Git Delete Merged Branches

Last updated on November 6, 2018 by Sal Ferrarello

When using Git, sometimes (often) I find myself forgetting to delete local branches after merging them. This command deletes this branches (and I’ve included a Git alias to make it easy to use in the future).

Filed Under: Computing, Draft, Programming, Solution Tagged With: Git


Warning! This is a draft, not a finalized post. See full draft disclosure.

Risk Dice Odds

Last updated on September 10, 2018 by Sal Ferrarello

I’ve been playing a lot of the Risk Boardgame with my two boys recently. The game involves rolling dice to determine the outcome of a battle. While it was always clear to me that the attacker has an advantage when attacking with three dice, I was curious about how great the advantage is so I wrote some JavaScript code to calculate the odds.

Filed Under: Computing, Draft, Game Theory Tagged With: Board Game, Risk


Warning! This is a draft, not a finalized post. See full draft disclosure.

JavaScript Idle Detection

Last updated on September 10, 2018 by Sal Ferrarello

Recently, I needed to determine when a website visitor was idle for a certain amount of time. I thought this was an interesting problem and wanted to spend a little more time with JavaScript so I wrote some code for it.

Filed Under: Computing, Draft, Programming Tagged With: JavaScript, website


Warning! This is a draft, not a finalized post. See full draft disclosure.

WP-CLI move site locally

Last updated on August 29, 2018 by Sal Ferrarello

These are the steps I follow when I move the database for a website to my local computer using WP CLI.

Filed Under: Computing, Dev Tips, Draft Tagged With: wp-cli

Screenshot o Mac application Activity Monitor
Warning! This is a draft, not a finalized post. See full draft disclosure.

Activity Monitor find App behind Process Name

Last updated on July 30, 2018 by Sal Ferrarello

When working on my Mac, sometimes I find a process in Activity Monitor and I want to know what application the process belongs to. I was introduced to this command to do just that.

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

  • Page 1
  • Page 2
  • Page 3
  • …
  • Page 5
  • Next Page»

Copyright © 2019 · Genesis Framework · WordPress · Log in