Skip to content

Instantly share code, notes, and snippets.

View reubenmiller's full-sized avatar

Reuben Miller reubenmiller

  • Hamburg, Germany
View GitHub Profile
@reubenmiller
reubenmiller / tedge-tenant-migration-basic-auth.md
Created August 15, 2025 08:29
thin-edge.io tenant migration steps

Migrating thin-edge.io to a new Tenant with Basic Auth

  1. On your computer, register the device in Cumulocity using the bulk registration api to create a username/password for the device.

    c8y deviceregistration register-basic \
        --id tedge-flows-demo2 \
        --outputTemplate "std.manifestTomlEx({c8y:{username: output.username, password: output.password}}, '')"
@reubenmiller
reubenmiller / debug.sh
Last active May 22, 2025 12:31
thin-edge.io debug info
#!/bin/sh
MODEL=$(cat /proc/cpuinfo | grep Model | cut -d: -f2- | xargs)
OS_NAME=$(cat /etc/os-release | grep PRETTY_NAME | cut -d= -f2- | tr -d '"')
printf '\n'
printf 'Debug information: (copy/paste to the ticket)\n'
printf '\n'
printf '|Property|Value|\n'
printf '|--------|-----|\n'
printf '|OS [incl. version]|`%s`|\n' "${OS_NAME:-unknown}"
@reubenmiller
reubenmiller / README.md
Last active May 26, 2025 14:13
thin-edge.io install and bootstrap for thin-edge connected to AWS

Bootstrap thin-edge.io for AWS

The script is a convience script to get started with thin-edge.io and AWS as quick as possible.

By default thin-edge.io will only be installed if it is not already, but if you want to update to the latest version you can provide the --update flag.

For more details check the --help of the script.

Interactive mode

@efrecon
efrecon / run.tpl
Last active November 6, 2025 10:40
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@davefunkel
davefunkel / Script-Template-WithCreds.ps1
Last active August 28, 2024 07:24
PowerShell Script Template with Saved Creds
<#
.SYNOPSIS
The synopsis goes here. This can be one line, or many.
This version of the template has inbuilt functions to capture credentials and store it securely for reuse
Avoids the need to have plaintext passwords in the script
.DESCRIPTION
The description is usually a longer, more detailed explanation of what the script or function does.
Take as many lines as you need.