Skip to content

Instantly share code, notes, and snippets.

View sochkasov's full-sized avatar
🇷🇺

Sergey Ochkasov sochkasov

🇷🇺
  • Kolomna, Russia
View GitHub Profile
# http://www.mosvodokanal.ru/forpeople/waterquality.php
# http://www.mosvodokanal.ru/widget-water.php
sensor:
- platform: rest
resource: http://www.mosvodokanal.ru:10080/webservices/address/qual?code=4
name: mosvodokanal
value_template: '{{ value_json.result.dtto }}'
scan_interval: '12:00:00'
json_attributes_path: $.result
json_attributes:
@yassineselmi
yassineselmi / swag-ha.conf
Last active February 12, 2024 06:30
SWAG Home assistant configuration
http {
upstream docker-homeassistant {
server homeassistant:8123;
}
upstream docker-nodered {
server homeassistant:1880;
}
upstream docker-mqtt {
@AlexxIT
AlexxIT / yandex_station_call.md
Last active July 27, 2025 19:59
Звонок на колонку с Алисой

Создаём в Home Assistant карточку для быстрого звонка на колонку.

  1. Можно создать или просто карточку-кнопку:
type: button
icon: 'mdi:phone-classic'
tap_action:
  action: url
  # Яндекс > Устройства > Колонка > Дополнительная информация > Идентификатор устройства (регистр важен)
// this gist is no longer needed,
// see https://github.com/glmnet/esphome-components/blob/main/docs/arduino_port_extender.md
// for up to date information
@vermotr
vermotr / Docker-Registry.md
Created February 7, 2017 15:56
Docker Registry with Basic Auth Nginx Server and Let's Encrypt certificate

Docker Registry

A simple Docker Registry with Basic Auth Nginx Server and Let's Encrypt certificate

How to use

You have to create a .htpasswd file and you can use the following command:

htpasswd -c registry.htpasswd username

License

@phrawzty
phrawzty / 2serv.py
Last active January 21, 2026 12:21
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
input {
file {
path => "/var/log/nginx/access.log"
type => "nginx-access"
sincedb_path => "/var/log/.nginxaccesssincedb"
}
}
input {
file {
path => "/var/log/nginx/error.log"
@alice-xu
alice-xu / Template_SNMP_DELL_OpenManage.xml
Last active October 22, 2024 01:14
Zabbix SNMP monitoring template for DELL Openmanage Server Administrator
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-06-18T02:56:36Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@finico
finico / sudoers
Created March 4, 2014 07:57
sudo: нет tty и не указана программа askpass (sudo: no tty present and no asppass program specified)
# добавить в (add in file) /etc/sudoers
Defaults visiblepw