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
@ffalt
ffalt / led_control.md
Last active May 2, 2025 15:45
Lincstation LED commands (tested on TrueNAS Scale 24.10)

Warning

i2cset commands with wrong parameters can damage your system. Handle with care!

The bus number may change after a restart, don't hardcode it into your scripts.

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
#!/usr/bin/env python
import datetime
import holidays
import calendar
workingdays_year = 0
uk_holidays=holidays.UK()
this_year=datetime.datetime.now().year
for month in range (1, 13):
weekdays = []
@somejavadev
somejavadev / weather-grafana.html
Created February 20, 2018 12:36
Simple weather html to be used in a Grafana text panel. Weather gets refreshed on the global refresh of the dashboard.
<!--
A simple grafana weather panel combined by posts from this page: https://github.com/grafana/grafana/issues/1816
Just change the WOE_ID. Get one for your region here: http://www.woeidlookup.com/
-->
<script>
var WOE_ID = XXXX;
var callbackFunction = function (data) {
@albal
albal / matrix.ino
Created July 13, 2014 13:01
Tisplay
/*
Al West, 2014, UK.
compiles to 6,240 bytes
Demonstrates the use a 20x4 LCD display as Matrix Orbital Device in LCD Smartie.
This should work all LCD displays that are compatible with the Hitachi HD44780 driver.
This sketch takes data from LCD Smartie emulating a Matrix Orbital and shows desired data.