-
install the termux app
-
install google-cloud-sdk
# install dependencies pkg install python curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rclone_remote=$1 | |
let total_size | |
for bucket in $(rclone lsf --dirs-only $rclone_remote:); do | |
echo "Counting bucket size of bucket ${bucket}" | |
bucket_size=$(rclone size $rclone_remote:$bucket --json | jq -r .bytes) | |
total_size=$((total_size + bucket_size)) | |
echo "Bucket ${bucket} uses ${bucket_size} bytes" |
I hereby claim:
- I am ctrox on github.
- I am cyrill_nine (https://keybase.io/cyrill_nine) on keybase.
- I have a public key ASDp7Onae_YjqilQkawCdvlf78GkH0ZBoHQNstnZsTgSMgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>Data Channel Demo 1</title> | |
<style> | |
button { | |
font: 18px sans-serif; | |
padding: 8px; | |
} | |
textarea { | |
font-family: monospace; | |
margin: 2px; |