Check device information
ls -lah /dev/net/
total 0
drwxr-xr-x 2 root root 60 Feb 22 10:53 .| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| # empty |
This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.
Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.
mkdir ~/mnt/dropbox| bind 192.168.1.106:8889 | |
| tls /etc/caddy/ssl/host_name-bundle.pem /etc/caddy/ssl/end_device-key.pem { | |
| protocols tls1.2 tls1.3 | |
| } | |
| # Reverse proxy to rclone restic rest service | |
| proxy / localhost:8080 { | |
| # health_check / | |
| transparent | |
| max_conns 1024 |
This script is modeled after tee (see [man tee][2]) and works on Linux, macOS, Cygwin, WSL/WSL2
It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.
This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]
| # The initial version | |
| if [ ! -f .env ] | |
| then | |
| export $(cat .env | xargs) | |
| fi | |
| # My favorite from the comments. Thanks @richarddewit & others! | |
| set -a && source .env && set +a |