Skip to content

Instantly share code, notes, and snippets.

@mike-weiner
Created June 12, 2025 19:05
Show Gist options
  • Select an option

  • Save mike-weiner/f1db7e9d1bc4dc6db99db9e89141e2a6 to your computer and use it in GitHub Desktop.

Select an option

Save mike-weiner/f1db7e9d1bc4dc6db99db9e89141e2a6 to your computer and use it in GitHub Desktop.
The following command is used to base64 encode a string on macOS without a trailing newline that vim has as a "feature."
echo -n "<YOUR-CONTENT-TO-ENCODE>" | base64 -b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment