Skip to content

Instantly share code, notes, and snippets.

@sergzin
sergzin / app.ini
Created September 10, 2021 13:03
Wazuh Rules
[test1]
log 1 pass = Sep 6 16:19:35 hostname1 APP: user1;API: User logged in using API
rule = 990010
alert = 3
decoder = apiuser
[test2]
log 1 pass = Sep 6 16:19:35 hostname1 APP: apiuser1;API: User logged in using API
rule = 990020
alert = 0
@sergzin
sergzin / ziggo_router.py
Last active November 13, 2016 19:31
Device discovery component for ziggo wifi routers.
"""
Device discovery component for ziggo wifi routers.
Tested on Cisco EPC3928AD EuroDocsis 3.0 2-PORT Voice Gateway
Modem software version: e3928A-E10-5-c3220r5592-150612c-ZIG
Module parses output from login screen http://192.168.178.1/login_zig.asp
place this file in custom_components/device_tracker/ziggo_router.py
add in your configuration the following.
device_tracker:
# Holt-Winters algorithms to forecasting
# Coded in Python 2 by: Andre Queiroz
# Description: This module contains three exponential smoothing algorithms. They are Holt's linear trend method and Holt-Winters seasonal methods (additive and multiplicative).
# References:
# Hyndman, R. J.; Athanasopoulos, G. (2013) Forecasting: principles and practice. http://otexts.com/fpp/. Accessed on 07/03/2013.
# Byrd, R. H.; Lu, P.; Nocedal, J. A Limited Memory Algorithm for Bound Constrained Optimization, (1995), SIAM Journal on Scientific and Statistical Computing, 16, 5, pp. 1190-1208.
from __future__ import division
from sys import exit
from math import sqrt