Generated by DALL-E

VISUAL vs EDITOR - Understanding the Difference

In Unix-like systems, you’ll see two environment variables frequently associated with text editing: VISUAL and EDITOR. At first glance, they look interchangeable — you’ll often see them both set to the same editor. Historically, though, there’s a reason they exist separately, and in certain environments today you may still benefit from giving them different values. Historical Context Line Editors vs Visual Editors Very early terminals had no cursor-positioning features. So editors (such as ed and ex) were command-based “line editors”....

20 January 2025 · 4 min · Toby Scott
Sybnology logo banner

Pulling images from GitHub Container Registry in Synology Container Manager

I have a Synology NAS which I’ve recently started using to run Docker containers using Synology’s Container Manager. Until now, the images for all the containers I wanted to run were available on Docker Hub. I’d use Synology’s Container Manager UI to pull the image and start the container and it’s been quite a nice experience until I needed to run a container from an image hosted in GitHub’s Container Registry (https://ghcr....

29 June 2024 · 2 min · Toby Scott
GitHub

Authenticating Git and GitHub CLI over SSH

Prerequisites Install GitHub CLI if you haven’t already brew install gh Check that you are logged out. gh auth status You are not logged into any GitHub hosts. Run gh auth login to authenticate. If you’re still logged in, logout. gh auth status github.com ✓ Logged in to github.com as tobyscott25 (keyring) ✓ Git operations for github.com configured to use https protocol. ✓ Token: gho_************************************ ✓ Token scopes: gist, read:org, repo, workflow gh auth logout ✓ Logged out of github....

8 January 2024 · 4 min · Toby Scott