Skip Voicemail Prompt

Cell phone companies make more money when you're on the phone longer, which is why it's in their best interest to present you with a really long voicemail prompt. You already know how to leave a voicemail!

But most carriers have a key you can press to skip the prompt. It changes depending on the carrier, which is hard to tell when calling someone. Fortunately, you can hit this key combination:

1 ✽ #

That should quickly give you a beep so you can record your message, and save a minute off of your phone bill!

git-upload-pack: command not found

I just tried to clone a git repository over the local network, and received this message:

zsh:1: command not found: git-upload-pack
fatal: The remote end hung up unexpectedly

As I understand it (and I might be wrong), your path can change depending on where you're logging in from. Run this command on the REMOTE machine:

which git-upload-pack

and find out where that command actually exists. Then, run this on your LOCAL machine:

ssh yourself@REMOTEmachine echo \$PATH

which will log in, and tell you what your new path is. For me, the new path didn't contain the location of git-upload-pack, which is installed on MacPorts, which puts it in the /opt/local/bin directory. Create/update the following file on the REMOTE machine in your home folder:

.zshenv if you're running Zsh
.bashrc if you're running Bash

and include the new path with the location of the git commands.

Terminal: Reset your window

Sometimes you'll inadvertently send binary data to your terminal window. Some of that binary data will screw up your terminal, as it receives color change codes and random line breaks and who knows what else. You could close your terminal window and reopen it, but then you lose your working directory and temporary environment variables. But pressing Command key icon+R will send the appropriate clearing signals, and fix your terminal window.