Skip to content

Instantly share code, notes, and snippets.

@albal
albal / my-copliot-instructions.md
Created May 31, 2025 11:30 — forked from jonathan-vella/my-copliot-instructions.md
Copilot Instructions for VS Code

GitHub Copilot Instructions for All Projects


applyTo: "**"

Core Development Principles

Code Quality & Maintainability

  • Readability First: Prioritize clear, self-documenting code over clever solutions
@albal
albal / led_control.md
Created January 15, 2025 19:00 — forked from ffalt/led_control.md
Lincstation LED commands on TrueNAS 24.10

Disclaimer: These commands with wrong parameters could damage your system. Take care!

Before you use any commands on this page you MUST find out the bus number for the led control on your system

Run

i2cdetect -y 0

i2cdetect -y 1
@albal
albal / notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml Home Assistant Blueprint: Notify or do something when an appliance like a dishwasher or washing machine finishes
blueprint:
name: Appliance has finished
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:
@albal
albal / trx-to-junit.xslt
Created June 18, 2019 11:28 — forked from cdroulers/trx-to-junit.xslt
Transform dotnet test output (TRX) to jUnit format for CI purposes.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a ="http://microsoft.com/schemas/VisualStudio/TeamTest/2006" xmlns:b ="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" >
<xsl:output method="xml" indent="yes" />
<xsl:template match="/">
<testsuites>
<xsl:variable name="buildName" select="//a:TestRun/@name"/>
<xsl:variable name="numberOfTests" select="count(//a:UnitTestResult/@testId) + count(//b:UnitTestResult/@testId)"/>
<xsl:variable name="numberOfFailures" select="count(//a:UnitTestResult/@outcome[.='Failed']) + count(//b:UnitTestResult/@outcome[.='Failed'])" />
<xsl:variable name="numberOfErrors" select="count(//a:UnitTestResult[not(@outcome)]) + count(//b:UnitTestResult[not(@outcome)])" />
<xsl:variable name="numberSkipped" select="count(//a:UnitTestResult/@outcome[.!='Passed' and .!='Failed']) + count(//b:UnitTestResult/@outcome[.!='Passed' and .!='Failed'])" />