Put your cursor in the text line/paragraph you want to format and enter the command:
gqap
I'm don't think any of this stuff will be interesting to anyone else, but it's just a place for me to write down things I want to remember. :-)
Put your cursor in the text line/paragraph you want to format and enter the command:
gqap
When cloning a repo, you may get an error like:
remote: HTTP Basic: Access denied. If a password was provided for Git authentication...
Go to GitLab and create a Personal Access Token if you don't already have one. Copy that token use it to clone the repo
git clone https://<user>:<token>@gitlab.com/<repo_name>.git
Where <token> is the token.
If the token expires or is revoked, you will need to generate a new token and add a new remote for the repo
git remote add origin https://sbargabus:<token>@gitlab.com/<repo_name>.git
And set up remote tracking
git branch --set-upstream-to=origin/main main
To create a password-protected ZIP file on macOS, open iTerm and use the command
zip -er filename.zip ./path/to/folder.
Replace filename.zip with your preferred name and ./path/to/folder with the path to the folder you want to compress, then enter a password when prompted.
Add the following to your .ssh/config with the appropriate IP address
Host 123.123.123.123HostKeyAlgorithms +ssh-rsa
https://www.iclarified.com/87910/how-to-fix-no-matching-host-key-type-found-on-mac
Install on MacOS
brew install diff-pdf
I used the follow for a visual diff:
diff-pdf --view earthscope-org-chart-2025-09_03_posted.pdf earthscope-org-chart-2025-09_12_posted.pdf
Commands to rsync pics to my private server and back.
rsync -avz --checksum --dry-run --ignore-existing saver/ sbargy@bargabus.com:~/saver
I had just fired up copilot and thought that was the cause. I was editing a file in VSCode and had the Vim extension installed. I use HJKL to move around a file, often holding down the key to move multiple lines. It stopped working. The K key would also pop up an Apple press and hold autocomplete suggestion that just contained a single k.
I removed the CoPilot extension and this behavior continued. After much search, found this SO question.
This command turns off ApplePressAndHold for the VSCode application...
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
Set True to re-enable.
UPDATE:
Had the same issue with Windsurf/Codeium. Tried the following
defaults write --app Windsurf.app ApplePressAndHoldEnabled -bool false
The --app flag threw an error. To find the Bundle ID of an application:
codesign -dr - /Applications/Windsurf.app
Executable=/Applications/Windsurf.app/Contents/MacOS/Electron
designated => identifier "com.exafunction.windsurf" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "83Z2LHX6XW"
So, the following worked for Windsurf...
defaults write com.exafunction.windsurf ApplePressAndHoldEnabled -bool false
Search for a filename in GitHub (all repos in an account or a single repo) with:
filename:user.rb
Add the following to the vimdiff command line...
-c 'set diffopt+=iwhite'
#---
## Replaces current node with latest, keeping installed global packages
#---
function nvm-upgrade {
CURR=$(nvm current)
nvm install node --reinstall-packages-from=node
nvm uninstall $CURR
}
docker, used when managing individual containers on a docker engine. It is the client command line to access the docker daemon APIdocker-compose, used to manage a multi-container application. It also moves many of the options you would enter on the docker run CLI into the docker-compose.yml file for easier reuse. It works as a front end "script" on top of the same docker API used by docker, so you can do everything docker-compose does with docker commands and a lot of shell scriptingdocker-machine, uses containerization to manage multiple images and containers and volumes and such: a container is basically a lightweight virtual machine