Skip to content

Instantly share code, notes, and snippets.

View vooon's full-sized avatar
🚴‍♂️
Working from home

Vladimir Ermakov vooon

🚴‍♂️
Working from home
View GitHub Profile
# Config for Xiaomi MJXDD01YL Ceiling lamp
# modified to have esp32 instead of mediatek chip.
#
# Based on: https://github.com/syssi/esphome-yeelight-ceiling-light
# See: https://github.com/syssi/esphome-yeelight-ceiling-light/issues/10
---
substitutions:
uname: Room2 Ceiling Light
device_name: room2-ceiling-light
friendly_name: $uname
@vooon
vooon / gcloud_config.go
Last active December 10, 2024 11:35
Some useful helpers to setup gophercloud
import (
"context"
"crypto/tls"
"log/slog"
"net/http"
"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack/config"
"github.com/gophercloud/gophercloud/v2/openstack/config/clouds"
oscli "github.com/gophercloud/utils/v2/client"