Update Usage

Caffeine Fueled 2025-11-05 19:29:04 +00:00
parent 63e8f948a0
commit 327d040153

@ -1,3 +1,44 @@
## Examples for alias in bash
```bash
## Optional: generate key, replace `mysecretkey`
openssl rand -hex 32
## Upload to linedump
ldup() {
local dir="${1:-.}"
local key="${2:-mysecretkey}"
tar cz "$dir" \
| openssl enc -aes-256-cbc -pbkdf2 -salt -base64 -pass pass:"$key" \
| curl -sS -X POST --data-binary @- https://linedump.com
}
## Download and extract from linedump in current directory
lddown() {
local paste_id="$1"
local key="${2:-mysecretkey}"
curl -s "https://linedump.com/${paste_id}" \
| base64 -d \
| openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:"$key" \
| tar xz
}
## Examples
# key is optional, as it would have been the default
ldup ./data mysecretkey
# replace `abc123` with paste_id of the upload
lddown abc123 mysecretkey
```
---
## Transfer directories or binary files
**Unencrypted**: