# LLeMbas TERM: command lines that look as if they hold a secret, and ones that do not.
#
# One case a line: "+ " before a line that must be taken for one that holds a secret,
# "- " before a line that must not. Both implementations of the rule are held to this
# table: llembas/line/src/secret.rs (cargo test -p llembas-line) and core.looks_secret
# (scripts/test-lua.sh). Nothing here is a real credential: every value is made up, and
# shorter than the real thing where a real one has a fixed length.

# -- assignments and exports whose name says what it holds
+ export OPENAI_API_KEY=sk-not-a-real-key
+ export GITHUB_TOKEN=abc123
+ API_KEY=abc123 ./deploy.sh
+ MY_SECRET=hunter2 make release
+ export DB_PASSWORD='correct horse'
+ PGPASSWORD=hunter2 psql -h db.example.org -U app
+ env MYSQL_PWD=hunter2 mysqldump shop
+ export AWS_SECRET_ACCESS_KEY="madeUpValue"
+ set -x CLIENT_SECRET madeup; export CLIENT_SECRET=madeup
+ export passwd=hunter2
+ CREDENTIALS=user:hunter2 ./run
+ export HTTP_AUTH=alice:hunter2
+ docker run -e POSTGRES_PASSWORD=hunter2 postgres
+ docker run --env=API_TOKEN=abc123 app
+ helm install db chart --set adminPassword=hunter2
+ export TOKEN='$not-a-variable-in-single-quotes'
+ git config --global user.signingkey=ABCDEF0123
- export EDITOR=vim
- export PATH=$HOME/.local/bin:$PATH
- export GITHUB_TOKEN=$(gh auth token)
- export API_KEY="$OTHER_KEY"
- TOKEN=$CI_JOB_TOKEN ./deploy.sh
- export PASSWORD=
- export API_KEY
- unset GITHUB_TOKEN
- read -s PASSWORD
- PWD=/tmp ls
- cd "$OLDPWD"
- SSH_AUTH_SOCK=/run/user/1000/keyring/ssh ssh example.org
- XAUTHORITY=~/.Xauthority xterm
- make CC=gcc -j8
- LANG=C sort names.txt
- echo $API_KEY
- printenv GITHUB_TOKEN

# -- options that take a password, a token, a key
+ mysql -u root -pS3cretWord shop
+ mysqldump -pS3cretWord shop > shop.sql
+ mariadb -uroot -phunter2
+ mysql --password=hunter2 shop
+ mysql --password hunter2 shop
+ psql --password=hunter2
+ wget --user=alice --password=hunter2 https://example.org/file
+ gh auth login --with-token abc123
+ vault login --token abc123def
+ cli --api-key abc123 list
+ cli --api-key=abc123 list
+ cli --apikey abc123
+ cli --secret abc123
+ cli --client-secret=abc123
+ cli --access-token abc123
+ cli --auth-token=abc123
+ sshpass -p hunter2 ssh example.org
+ sshpass -phunter2 ssh example.org
+ docker login -u alice -p hunter2 registry.example.org
+ docker login --username alice --password hunter2
+ echo hunter2 | docker login -u alice --password-stdin
+ redis-cli -a hunter2 ping
+ 7z a -phunter2 archive.7z files/
+ unzip -P hunter2 archive.zip
+ zip -P hunter2 out.zip file
+ ldapsearch -D cn=admin -w hunter2 -b dc=example
+ mongosh -u alice -p hunter2
+ openssl rsa -in key.pem -passin pass:hunter2
+ htpasswd -b .htpasswd alice hunter2
+ echo 'hunter2' | sudo -S apt update
+ echo "alice:hunter2" | chpasswd
+ echo hunter2 | passwd --stdin alice
- mysql -u root -p shop
- mysql -u root -p
- mysql -P 3306 -h db.example.org shop
- psql --no-password shop
- ssh -p 2222 example.org
- mkdir -p build/out
- cp -p a b
- docker run -p 8080:80 nginx
- docker run -u 1000:1000 app
- docker run -u app:app app
- git commit --author="Alice <alice@example.org>" -m fix
- git log --author=alice
- curl --key ~/.ssh/client.pem https://example.org
- curl --key=/etc/ssl/client.pem https://example.org
- ssh -i ~/.ssh/id_ed25519 example.org
- ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
- sort --key=2 file.txt
- gpg --keyserver hkps://keys.example.org --recv-keys ABCDEF01
- tar -xpf archive.tar
- grep -rn password src/
- grep -i "password" config.yaml
- grep -rn 'Authorization:' src/
- vim ~/.config/app/token.json
- cat secret.txt
- ls secrets/
- kubectl get secret app-credentials -o yaml
- pass show email/work
- man passwd
- passwd alice
- sudo -s
- sudo -u postgres psql
- unzip archive.zip
- 7z x archive.7z
- redis-cli ping
- htpasswd -c .htpasswd alice
- npm login
- gh auth login
- gh auth status

# -- name and password together
+ curl -u alice:hunter2 https://example.org/api
+ curl --user alice:hunter2 https://example.org/api
+ curl --user=alice:hunter2 https://example.org/api
+ curl -ualice:hunter2 https://example.org
+ curl --proxy-user alice:hunter2 https://example.org
+ git clone https://alice:hunter2@example.org/repo.git
+ psql postgres://app:hunter2@db.example.org:5432/shop
+ mongosh "mongodb://alice:hunter2@db.example.org/admin"
+ pip install --index-url https://alice:abc123@pypi.example.org/simple pkg
+ wget ftp://alice:hunter2@example.org/file
- curl -u alice https://example.org/api
- curl https://example.org/api
- git clone https://example.org/repo.git
- git clone git@example.org:alice/repo.git
- git clone ssh://git@example.org:2222/alice/repo.git
- psql postgres://app@db.example.org/shop
- scp file.txt alice@example.org:/srv/www/
- rsync -av src/ alice@example.org:backup/
- ssh alice@example.org
- curl http://localhost:8080/health
- curl "https://example.org/search?q=a:b@c"
- skopeo copy docker://alpine:latest dir:out
- curl http://[::1]:8080/health
- curl http://localhost:80
- psql postgres://app
+ psql postgres://app:hunter2
+ git clone https://alice:hunt

# -- headers, fields and queries
+ curl -H "Authorization: Bearer abc123def456" https://example.org
+ curl -H 'Authorization: Basic YWxpY2U6aHVudGVyMg==' https://example.org
+ curl -H "authorization: token abc123" https://example.org
+ curl -H "X-Api-Key: abc123" https://example.org
+ curl -H "X-Api-Key:abc123" https://example.org
+ curl -H "X-Auth-Token: abc123" https://example.org
+ http example.org "Authorization:Bearer abc123def456"
+ curl -d '{"password": "hunter2"}' https://example.org/login
+ curl -d '{"user":"alice","password":"hunter2"}' https://example.org/login
+ curl -d "username=alice&password=hunter2" https://example.org/login
+ curl "https://example.org/api?access_token=abc123"
+ curl "https://example.org/api?api_key=abc123&q=x"
+ echo "token: abc123" >> config.yaml
+ websocat "wss://example.org/socket" -H "Sec-Token: abc123"
- curl -H "Authorization: Bearer $TOKEN" https://example.org
- curl -H "Accept: application/json" https://example.org
- curl -H "Content-Type: application/json" -d '{"q":"x"}' https://example.org
- curl -H "X-Api-Key: $API_KEY" https://example.org
- curl -d "username=alice" https://example.org/login
- echo "the bearer of news"
- echo "basic usage: run make"
- docker pull registry.example.org/token-service:latest
- scp notes.txt tokenhost:/tmp/
- kubectl logs deploy/auth-service
- systemctl status auth.service

# -- keys by their well-known beginning
+ export OPENAI=sk-abcdefghijklmnopqrstuvwx
+ echo sk-proj-abcdefghijklmnopqrstuvwx
+ echo sk-proj-ab
+ tool login sk-ant-x
+ tool login ghp_abcdefgh
+ tool login glpat-a
+ git remote set-url origin https://ghp_abcdefghij0123456789@example.org/a/b
+ gh api -H x: ghp_abcdefghij0123456789
+ echo github_pat_abcdefghij0123456789
+ curl --header "PRIVATE-TOKEN: glpat-abcdefghij012345" https://example.org
+ slack-cli send xoxb-not-a-real-one "hello"
+ aws configure set aws_access_key_id AKIAEXAMPLEEXAMPLE00
+ echo "-----BEGIN OPENSSH PRIVATE KEY-----" > key
+ printf '%s' '-----BEGIN RSA PRIVATE KEY-----'
- task-runner --list
- pip install scikit-learn
- echo sk-short
- echo ghp_abc
- brew install ask-cli
- ls disk-usage-report-2024-final-version.txt
- echo "-----BEGIN CERTIFICATE-----"
- echo "-----BEGIN PGP PUBLIC KEY BLOCK-----"
- git checkout ghp-pages

# -- a long word that looks random
+ deploy --with Zx9Qv7Lm2Tp4Rk8Wn3Hs6Yd1Bc5Fg0JeXAMPLEab
+ echo eyJhbGciOiJub25lIn0.eyJzdWIiOiJub2JvZHkiLCJ4IjoxMjM0NX0.c2lnbmF0dXJl
+ curl https://example.org/hook/T0aB1cD2eF3gH4iJ5kL6mN7oP8qR9sT0uV
- git checkout 3f2a9c1b7d4e8f6a5b0c9d8e7f6a5b4c3d2e1f0a
- git show 1026152aa3f2a9c1b7d4e8f6a5b0c9d8e7f6a5b4
- docker pull nginx@sha256:3f2a9c1b7d4e8f6a5b0c9d8e7f6a5b4c3d2e1f0a3f2a9c1b7d4e8f6a5b0c9d8e
- uuidgen; echo 123e4567-e89b-12d3-a456-426614174000
- cd /home/alice/Projects/MyApp2/build/release/x86_64
- cat ~/Documents/Reports/Annual-Report-2024/Summary.md
- kubectl logs my-service-7d9f8b6c5d-x2k4j --tail=100
- java -cp build/libs/MyApplication-1.0-SNAPSHOT.jar com.example.Main
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
- ./configure --prefix=/usr --enable-shared --with-openssl
- npm install --save-dev @types/node typescript eslint prettier
- wget https://example.org/downloads/Package-Installer-v2.14.3-linux-x86_64.tar.gz

# -- ordinary commands, of the kind typed all day
- ls -la
- cd ..
- git status
- git add -p
- git commit -m "fix the key handling in the token parser"
- git push origin main
- git log --oneline -20
- git diff HEAD~1 -- src/auth.rs
- git rebase -i HEAD~3
- git stash pop
- cargo build --release
- cargo test -p llembas-line
- npm run build
- npm test -- --watch
- make -j8 test
- python3 -m venv .venv
- python manage.py migrate
- pip install -r requirements.txt
- docker ps -a
- docker compose up -d
- docker exec -it app bash
- docker build -t app:latest .
- kubectl get pods -n prod
- kubectl apply -f deploy.yaml
- ssh example.org
- ssh-add ~/.ssh/id_ed25519
- scp a.txt example.org:
- rsync -av --delete src/ dst/
- tar -czf backup.tar.gz src/
- find . -name '*.rs' -newer Cargo.toml
- grep -rn "TODO" src/
- sed -i 's/foo/bar/g' file.txt
- awk -F: '{print $1}' /etc/passwd
- sudo apt update && sudo apt upgrade -y
- sudo systemctl restart nginx
- journalctl -u nginx -f
- tail -f /var/log/syslog
- ps aux | grep nginx
- kill -9 12345
- df -h
- du -sh *
- htop
- vim src/main.rs
- nvim +42 README.md
- less /etc/hosts
- cat package.json | jq .version
- curl -fsSL https://example.org/install.sh -o install.sh
- curl -X POST -d '{"name":"x"}' https://example.org/items
- ping -c 3 example.org
- dig +short example.org
- openssl x509 -in cert.pem -noout -dates
- openssl genrsa -out key.pem 4096
- gpg --list-keys
- chmod 600 ~/.ssh/authorized_keys
- chown -R www-data:www-data /srv/www
- ln -s ../shared/config config
- echo "hello world" > out.txt
- date +%Y-%m-%d
- history | tail
- which python3
- man tar
- for f in *.txt; do wc -l "$f"; done
- xmodmap -e "keycode 66 = Escape"
- setxkbmap -option caps:escape
- lembas login
- terraform plan -out=tfplan
- ansible-playbook -i hosts site.yml --ask-vault-pass
- psql -h db.example.org -U app shop
- sqlite3 app.db "select count(*) from users"
