Instantly share code, notes, and snippets.
SW/HW Veteran.From microelectronics & assembly language ..to.. electronic circuit design & SW Applications (Embedded/Desktop/Web/Mobile).
- France
mdeweerd /proxmox-realtek-r8168.md
Last activeMarch 3, 2025 00:06 — forked fromtushroy/proxmox-realtek-r8168.md
Realtek r8168 Driver for Proxmox VE Kernel version 6.8mdeweerd /sel_screen.bash
Last activeJanuary 28, 2025 00:02
Interactively select a GNU Screen session This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Shell function to list the screen sessions on a machine | |
# and let the user select one from the list using up-down | |
# arrows. | |
# | |
# Add this to your `.bashrc` file or to your `.bashrc.d` directory | |
# where you should make it executable to be automatically | |
# sourced in some default `.bashrc` scripts. |
mdeweerd /bathroom-humidity-exhaust-fan.yaml
Last activeDecember 27, 2024 22:31 — forked fromBlackshome/bathroom-humidity-exhaust-fan.yaml
bathroom-humidity-exhaust-fan.yaml This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
blueprint: | |
name: Bathroom Humidity Exhaust Fan | |
description: | | |
# 🚿 Bathroom Humidity Exhaust Fan | |
**Version: 2.6** | |
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿 | |
mdeweerd /build.bat
Last activeMarch 3, 2025 15:20 — forked fromGaryLee/build.bat
Build STM32CubeIDE project from command line. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
@ECHOOFF | |
setlocalenabledelayedexpansion | |
set"STM32CUBEIDE=" | |
for /d /r"C:\ST"%%din ("STM32CubeIDE_*")do ( | |
ifnotdefined STM32CUBEIDE ( | |
set"STM32CUBEIDE=%%~fd" | |
)else ( | |
for /f"tokens=2 delims=_."%%ain ("%%~nd")do ( | |
for /f"tokens=2 delims=_."%%bin ("!STM32CUBEIDE:_=!")do ( |
mdeweerd /addCodespellIgnores.sh
Last activeJanuary 22, 2024 10:45
Script to add ignored lines to codespell configuration This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script to add codespell exceptions to the ignores lines file. | |
# | |
# The file is named '...-lines-ignore' to make TAB expansion on the cli easier. | |
# | |
# The line in the ignore file must match the line in the source | |
# exactly. | |
# | |
# To clean up or create the ignored lines file, just do |
mdeweerd /fix-links.lua
Last activeSeptember 24, 2023 20:49 — forked fromMyriaCore/fix-links.lua
How to use pandoc with gitlab markdown This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
-- see if the file exists | |
functionfile_exists(file) | |
localf=io.open(file,"rb") | |
iffthenf:close()end | |
returnf~=nil | |
end | |
functionescape_shell(s) | |
-- From https://github.com/ncopa/lua-shell/blob/master/shell.lua | |
ifs:match("[^A-Za-z0-9_/:=-]")then |
mdeweerd /!README.md
Last activeSeptember 21, 2023 21:34
Monitor Email Service by Checking Incoming on IMAP Server This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
# A ajouter au répertoire de quirks défini dans la configuration (configuration.yaml): | |
# zha: | |
# enable_quirks: true | |
# custom_quirks_path: /config/zha_quirks | |
fromzhaquirks.lixee.zlinkyimport* | |
fromzigpy.profilesimportzha | |
fromzigpy.quirksimportCustomCluster,CustomDevice | |
importzigpy.typesast | |
fromzigpy.zcl.clusters.generalimportBasic,GreenPowerProxy,Identify,Ota,PowerConfiguration |
NewerOlder