Category Archives: Tech

Tmux default path for new panes

I use tmux to organize my workspace as I’m working on a project. One command that has made this possible, allows me to change the default directory that new panes in tmux will open to.

In order to type this command in, tmux has a command mode that can be accessed with the ctrl + : keyboard shortcut.

attach -c /path/to/new/default/dir

Then open up a new tmux window/pane. (e.g. ctrl + b, n). You’re new window will open to your new default dir path.

termbin is neat

termbin is a faster workflow alternative to GitHub’s gists or GitLab’s snippets.

Just pipe your output to termbin with netcat:

cat <some.file> | nc termbin 9999

The command will output a short link to your uploaded content.


$ cat | nc 9999

more info:

Apple Mail app stopped working with gmail?!

I’m not a huge fan of Apple gear, but I’m well aware that I’m in the minority. My fiancee practically lives on her Macbook Air though. Recently her email application, the Apple Mail app, stopped logging into her GMail and GSuite accounts.

After digging around for a while on various support forum threads and other websites, we stumbled upon this incredibly helpful advice:

There were a few modifications to the process that ended up working for us:

  • open safari and visit
  • click into your account (upper right hand corner) and then click the button to “sign out of all accounts”
Sign out of all Google accounts
  • for each of your Google accounts:
  • restart your Apple computer
    • note: Simply closing the Mail app (and even force quitting) did not reset the authentication for Mail accessing the Google accounts for us. Restarting the computer was necessary.
  • launch the Apple Mail
  • open Mac Mail’s “Connection Doctor” window:
    • top menu > Window > Connection Doctor
Open Apple’s Mail app “Connection Doctor” window
  • This will provide the connectivity status for each of your email accounts setup in the Mail app
Connection Doctor displaying mail account connectivity

Hopefully this saves you some time! It is not fun circling between support forums between 2 large companies pointing the finger at eachother.

difference between apt-get autoremove and apt-get autoclean

I have an operating system update routine where I’ve stashed a few commands to install updates, but also clean up unused packages to free up some hard drive space.

sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo apt-get install -fy && \
sudo apt-get autoremove -y && \
sudo apt-get autoclean -y && \
sudo sync && sudo sync

I’ve never taken the time to review if both apt-get autoclean and apt-get autoremove are both necessary in this routine.  So let’s take a look at the apt-get man page:

autoclean (and the auto-clean alias since 1.1)
Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes
package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long
period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages
from being erased if it is set to off.

autoremove (and the auto-remove alias since 1.1)
autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and
are now no longer needed.

So apt-get autoclean will clean out packages that are no longer downloadable from your deb repositor(y/ies), while apt-get autoremove will uninstall packages that are no longer needed.