Skip to content

Instantly share code, notes, and snippets.

View oidebrett's full-sized avatar

Oide Brett oidebrett

View GitHub Profile
@oidebrett
oidebrett / gist:5eb260124513f71674b5534c45da67cc
Created June 9, 2025 19:07
Setting up Komodo and Pangolin
I want you to help me writing another article in markdown format for a foundational article on how to install and set up komodo and pangolin
komodo is a tool to build and deploy software on many servers
Komodo is a web app to provide structure for managing your servers, builds, deployments, and automated procedures.
With Komodo you can:
Connect all of your servers, alert on CPU usage, memory usage, and disk usage, and connect to shell sessions.
Create, start, stop, and restart Docker containers on the connected servers, view their status and logs, and connect to container shell.
@oidebrett
oidebrett / setting_up_crowdsec_pangolin_middleware_manager
Last active October 30, 2025 01:30
Detailed Steps for Setting Up Crowdsec with Pangolin and Middleware Manager
Detailed Steps
1) First obtain your enrolment key from Crowdsec. Enrollment refers to connecting your CrowdSec Security Engine to the CrowdSec Console
To Get CrowdSec Enrollment Key
- Visit https://www.crowdsec.net/
- Log in to your account
- Obtain the enrollment key from your dashboard
- Copy this key for later use
@oidebrett
oidebrett / AccessingMatterAttributesusingPythonandMatterSDK.txt
Last active December 12, 2024 07:56
Accessing Matter Attributes using Python and the Matter SDK
# Import the core chip libraries of Attribute and Clusters
from chip.clusters import Attribute, Objects as Clusters
# Import the required clusters
from chip.clusters.Objects import Binding, BasicInformation
# Fetch attributes
allAttributes = await devCtrl.ReadAttribute(1, [('*')])
firstResult = allAttributes[0]
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2024.6.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.12.2",
"docker": true,
"arch": "aarch64",
@oidebrett
oidebrett / OTA for Matter Light Example.txt
Last active February 9, 2024 12:49
OTA for Matter Light Example
0. Build the lighting app example in the connectedhomeip repo as this supports the OTA functionality
~/Projects/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/
1. Commission and pair the previpusly coded Matter light using the chip-tool and verify the software version.
./out/host/chip-tool basicinformation read software-version 1 0
2. Change the CONFIG_APP_PROJECT_VER_FROM_CONFIG option in the file ~/Projects/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/sdkconfig
from
@oidebrett
oidebrett / Generate_Certs_and_Flash_to_Secure_Partition.txt
Last active January 3, 2024 20:15
Generate PKI credentials for ESP32 matter devices and storing them in esp_secure_cert partition
#Generate the certs and keys and flash into factory data
git checkout 4cc18bb24fc7b0a95104846fdf746cbba7cebaf2 # this adds support for factory data CD API
source script/bootstrap.sh
#Create the PKI certs and keys
Export your custom VID/PID as environment variables to decrease chances of clerical error when editing your command arguments:
export VID=hexVendorId
export PID=hexProductId
@oidebrett
oidebrett / generate-embeddable-certs.sh
Created January 3, 2024 13:46
This script generates self-minted DAC and PAI. The output may easily be included in your C++ source code.
#!/bin/bash
#
# generate-embeddable-certs.sh script
# —----------------------------------
#
# This script generates self-minted DAC and PAI.
# The output may easily be included in your C++ source code.
#
@oidebrett
oidebrett / Hard coding certs for ESP32 matter example.txt
Last active January 3, 2024 19:07
Creating new Certificates for ESP32 matter lighting app example
cd connectedhomeip
source scripts/activate.sh
#Download any new PAA certs from the DCL
python3 -m pip install click_option_group # somehow missing from
cd credentials/development
python3 ../fetch-paa-certs-from-dcl.py --use-test-net-http
cd ../production
python3 ../fetch-paa-certs-from-dcl.py --use-main-net-http
Create IAM User (This is uses instead of using the ROOT User)
1- Search and navigate to IAM page
2- Choose User then Add User
3- Select the name "My_OTA_User" for example
4- For access type Select whatever you like (we can use Paragmmatic access)
5- Select attach existence policy and search for and select the following
- AmazonFreeRTOSFullAccess
- AmazonFreeRTOSOTAUpdate
- AWSIoTFullAccess
6- Select Create User and download the credentials CSV file