Skip to content

Instantly share code, notes, and snippets.

View mrchrisadams's full-sized avatar

Chris Adams mrchrisadams

View GitHub Profile
@mrchrisadams
mrchrisadams / dirigera-guide.md
Last active March 21, 2026 12:50
Exporting temperature data from IKEA Dirigera hub to CSV

Exporting temperature data from IKEA Dirigera hub to CSV

Exporting Temperature Data from IKEA Dirigera to CSV

This guide covers how to install the ikea CLI, authenticate with your Dirigera hub, and export all temperature readings from your Alpstuga sensors into CSV files. Useful as documented evidence for a rent reduction (Mietminderung) claim.

Note: This uses the unofficial ikea-dirigera-client library. It is not affiliated with IKEA. A future hub firmware update could break it.


@mrchrisadams
mrchrisadams / devstral-small-2512-csrd-code-review.md
Last active March 20, 2026 15:05
CSRD Code Performance Review

CSRD Code Review - Performance Analysis and Optimization Opportunities

Summary

The CSRD document processing code in the carbon-txt-validator has several performance bottlenecks that can be addressed to improve speed and resource utilization. The main issues revolve around Arelle initialization, file loading, and redundant processing.

Current Performance Issues

1. Arelle Session Initialization Overhead

Dear colleague,

Thank you for your interest in participating in the stakeholder consultation on Minimum Performance Standards for data centers. The first stakeholder workshop will take place online on 24 March from 10:00–13:00 CEST (Microsoft Teams). If you would like to participate, please register using the link below:

https://ec.europa.eu/eusurvey/runner/2b7fd798-024a-9565-d628-1e9e347cda21

Dear Chris Adams,

We are contacting you because you previously participated in a study on data centre sustainability (EUDCEAR) or you were suggested as potentially interested stakeholder for the topic. The findings of the previous study informed two technical reports which are available online (Report 1Report 2) and helped identify key priorities for a sustainable data centre sector in the EU.

We are pleased to invite you to participate in the next phase of stakeholder consultation for a new study contracted by the European Commission Directorate-General for Energy (DG ENE

@mrchrisadams
mrchrisadams / 1.readme.md
Last active February 9, 2026 10:02
How to use Marimo with energy disclosing inference providers.
@mrchrisadams
mrchrisadams / 01 - PROPOSAL.md
Last active February 13, 2026 09:34
RFC: Energy Tracking as First-Class Citizen in OpenCode - Proposal for native energy/carbon tracking with plugin hooks

Proposal: Energy Tracking as a First-Class Citizen in OpenCode

Summary

This proposal adds native energy and carbon tracking to OpenCode by:

  1. Capturing measured energy data from providers that supply it (GreenPT, Neuralwatt)
  2. Estimating energy for providers that don't measure it
  3. Storing energy data alongside existing token/cost data
  4. Providing plugin hooks for customization and external integration
@mrchrisadams
mrchrisadams / opencode-energy-tracking.md
Last active February 8, 2026 17:21
Research: Energy and Carbon Tracking for OpenCode - Analysis of instrumenting OpenCode with energy/carbon data similar to llm-greenpt and llm-neuralwatt

Energy and Carbon Tracking for OpenCode

Research Document: Instrumenting OpenCode with Energy/Carbon Data

Date: January 2025
Author: Research analysis based on llm-greenpt, llm-neuralwatt, and OpenCode codebase


Executive Summary

@mrchrisadams
mrchrisadams / 1. WordPress with SQLite on FrankenPHP.md
Last active February 4, 2026 21:21
WordPress + FrankenPHP + SQLite with systemd socket activation (start on demand, stop when idle)

WordPress with SQLite on FrankenPHP

A lightweight WordPress setup using SQLite instead of MySQL/MariaDB, powered by FrankenPHP. No database server required.

Quick Start

For a fresh Ubuntu 24.04 server:

curl -fsSL https://raw.githubusercontent.com/YOUR_REPO/setup.sh | sudo bash -s -- yourdomain.com 8000
@mrchrisadams
mrchrisadams / readme.md
Last active July 29, 2025 08:02
This is an example wordpress plugin to add carbon.txt headers into wordpress.

What's this?

This is is an minimal wordpress plugin we would need to allow any WordPress site to link to a carbon.txt file we would need to set up linked domains to work with the Green Web Platform.

How would it need to work?

  1. Install this plugin
  2. Activate the plugin
  3. Set the location of the carbon.txt file (see the screenshot)
@mrchrisadams
mrchrisadams / devcontainer.json
Last active November 13, 2024 09:25
codespaces do not seem to respect new features added when building. this is me troubleshooting
{
"// filepath-in-my-repo": ".devcontainer/devcontainer.json",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
"ghcr.io/eitsupi/devcontainer-features/just:0": {}
}
}