docs: Update 11 files
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 10s
Build-Test-Publish / build (linux/amd64) (push) Failing after 24s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped

This commit is contained in:
Your Name
2025-06-25 18:23:24 +12:00
parent e65b3a867a
commit 93c8cb3c4c
11 changed files with 630 additions and 0 deletions

42
bb64/README.md Normal file
View File

@ -0,0 +1,42 @@
# bb64
# Installation
Automated system-wide installation:
```
curl -fsSL https://gitea.jde.nz/public/bb64/releases/download/latest/install.sh | bash
```
## To download just the bb64 executable:
```
curl -fsSL -o bb64 https://gitea.jde.nz/public/bb64/releases/download/latest/bb64.amd64 && chmod a+x bb64
```
# Use
Bash Base64, written in C++.
Uses a custom Base64 character set for bash compatibility, not compatible with other utilities.
```
Usage:
bb64 BASE64COMMAND Decodes and runs the command
bb64 -[i|d] BASE64COMMAND Displays the decoded command
bb64 -e COMMAND Encodes the command and prints the result
bb64 -u Updates bb64 to the latest version (uses docker)
```
# Implementation Notes
bb64 runs the command by replacing the current process, so it ensures that tty, environment
variables etc are all identical for the run command. It works with interactive commands, like
nano or ssh.
bb64 supports bash scripts, as the command is run as:
`bash -c 'COMMAND'`
Where COMMAND is passed to bash as a single argument.
If the command is run, the return value is the return value of the command.
If it isn't run, bb64 returns -1.