Skip to content

Instantly share code, notes, and snippets.

@hugokernel
hugokernel / eviciv-asm160qc-disable-no-signal-animation.md
Last active June 25, 2026 14:58
Disable the EVICIV / ASM-160QC "No Signal" Flashing Color Animation (Factory Menu Guide)

EVICIV / CYS ASM-160QC – Disable the annoying "No Signal" color animation

If your EVICIV portable monitor displays an endless flashing color pattern instead of going to sleep when the video signal is lost, this may help.

This was tested on a monitor identified as:

  • Brand: EVICIV
  • OEM: CYS
  • EDID Product Name: ASM-160QC
  • Controller: SVN3102
@hugokernel
hugokernel / muino-water-meter-esp32.yaml
Last active February 27, 2025 08:33
ESPHome version of muino water meter
substitutions:
name: watermeter
friendly_name: "WaterMeter"
esphome:
name: $name
on_boot:
priority: -10
then:
- script.execute:
@hugokernel
hugokernel / dreammachineha.md
Last active September 6, 2023 08:08
Using a Dreammachine as a Doorbell with Home Assistant
@hugokernel
hugokernel / ratelimit.py
Last active December 2, 2021 19:24
Async rate limit call
def ratelimit(seconds=0, minutes=None, hours=None, days=None):
"""Rate limit call to a function"""
for var, delay in (
('minutes', 60),
('hours', 60 * 60),
('days', 60 * 60 * 24),
):
if locals()[var] is not None:
seconds += locals()[var] * delay
@hugokernel
hugokernel / test.py
Last active June 15, 2018 07:05
Test fit file
from fitparse import FitFile
from collections import OrderedDict
import datetime
UTC_REFERENCE = 631065600
fitfile = FitFile('lagny_fim.fit')
data = {}
for _, msg in enumerate(fitfile.get_messages('hr')):
@hugokernel
hugokernel / pled.py
Created March 3, 2016 14:42
pled.py
import time
import serial
import contextlib
DEVICE = '/dev/tty.usbmodemFD131'
DELAY = 0.01
class Serial:
@hugokernel
hugokernel / openalarm.yaml
Last active September 30, 2015 13:52
Fichier de configuration d'un OpenAlarm Node
devices:
/dev/toto:
config: default
/dev/tty.usbmodemfd131:
config: default
configs:
default:
group: 210
@hugokernel
hugokernel / outlet.py
Created May 19, 2015 07:08
Outlet driver
#!/usr/bin/python
import RPi.GPIO as GPIO
from time import sleep
class Power_Outlet:
OUTPUT0 = 12
OUTPUT1 = 11
OUTPUT2 = 13
@hugokernel
hugokernel / scan.py
Last active October 3, 2017 23:41
Python scanner for first line eval() based infection on php script
'''
Python scanner for first line eval() based infection on php script (ex: Wordpress infection)
Information: http://somewebgeek.com/2014/wordpress-remote-code-execution-base64_decode/
hugokernel, 09/2014
Usage:
python scan.py directory
'''
import sys
@hugokernel
hugokernel / fizzbuzz.py
Last active August 29, 2015 14:04
Mes versions du FizzBuzz en Python (http://sametmax.com/fizzbuzz-en-python/)
# -*- coding: utf-8 -*-
from __future__ import print_function
'''
Écrire un programme qui affiche les nombres de 1 à 199.
Mais pour les multiples de 3, afficher “Fizz” au lieu du nombre et pour les multiples de 5 afficher “Buzz”.
Pour les nombres multiples de 3 et 5, afficher “FizzBuzz”.
'''
# Simple version