Skip to content

Instantly share code, notes, and snippets.

View ctrox's full-sized avatar

Cyrill Troxler ctrox

View GitHub Profile
@ctrox
ctrox / gcloud-termux-android.md
Last active December 11, 2021 10:42
gcloud/kubectl with termux on android

gcloud/kubectl with termux on android

  1. install the termux app

  2. install google-cloud-sdk

    # install dependencies
    pkg install python curl
@ctrox
ctrox / count-object-storage.sh
Last active January 18, 2019 10:08
Counts the size of all buckets in an s3 remote using rclone and jq
#!/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"

Keybase proof

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:

@ctrox
ctrox / dc.html
Last active December 21, 2015 05:19
WebRTC DataChannel File Demo
<!DOCTYPE html>
<title>Data Channel Demo 1</title>
<style>
button {
font: 18px sans-serif;
padding: 8px;
}
textarea {
font-family: monospace;
margin: 2px;