Skip to content

Instantly share code, notes, and snippets.

View t3hk0d3's full-sized avatar
🏠
Working from home

Igor Yamolov t3hk0d3

🏠
Working from home
  • Booking.com
  • Amsterdam, Netherlands
View GitHub Profile
@t3hk0d3
t3hk0d3 / spinel over ethernet.md
Last active November 17, 2026 06:53
spinel2quic phase 5: carrying Spinel over the network — what replaces TCP

Carrying Spinel over the network: what replaces TCP

Measurements on one test bench, 10–13 November 2026.

Problem: Spinel over TCP breaks when the network does

Spinel is the protocol a host uses to drive an 802.15.4 radio co-processor (RCP): the host runs the Thread or Zigbee stack, and the radio chip only sends and receives frames on command. Network-attached coordinators (here an SMLIGHT SLZB-06: an ESP32 next to a CC2652P radio) usually carry Spinel to the host over a plain TCP socket.

@t3hk0d3
t3hk0d3 / Spinel.md
Last active November 5, 2026 16:06
Spinel over IP

TCP, UDP, QUIC and relpkt for Spinel

Nov 5, 2026 · @Igor Yamolov

Problem

Spinel was built for a short local link, but placing a radio away from its host means carrying Spinel over an IP network. The question is which transport handles that network best.

In an RCP setup, the host runs the Zigbee or Thread stack and the radio chip handles little more than sending, receiving and ACKing frames. Spinel connects the two, normally over UART or SPI. Running that link over IP lets a radio sit where coverage is best, with the host elsewhere.

@t3hk0d3
t3hk0d3 / sonoff-trvzb.yaml
Last active February 19, 2026 23:30
Home Assistant Sonoff TRVZB Dynamic External Temperature Automation
blueprint:
name: "Dynamic Sonoff TRVZB External Temperature Updater"
description: "Set Sonoff TRVZB External temperature sensor to average measured temperature in TRVs area"
domain: automation
input:
run_interval:
name: "Run Interval"
description: |
How often this automation will be executed (in minutes).
Recommended - every 5 minutes (default)

Как выйти из Российского Гражданства

https://netherlands.mid.ru/ru/consular-services/consulate-ru/citizenship/vykhod_iz_grazhdanstva_rf/

Необходимые документы

  • Заявление в двух экземплярах. Образец
  • Загран. паспорт РФ + копия
  • Загран. паспорт Нидерландов + копия + заверенный перевод. Пример перевода
  • Внутренний паспорт РФ + копия
@t3hk0d3
t3hk0d3 / mqtt_sensors.yaml
Last active September 15, 2023 18:42
Teslamate Home Assistant MQTT config
- sensor:
name: Display Name
unique_id: teslamate_1_display_name
availability: &teslamate_availability
- topic: teslamate/cars/1/healthy
payload_available: 'true'
payload_not_available: 'false'
device: &teslamate_device_info
identifiers: [teslamate_car_1]
configuration_url: https://teslamate.home/
@t3hk0d3
t3hk0d3 / linux-fix-fake-bt-dongle.patch
Created February 7, 2021 00:12
Patch to fix broken fake-CSR BT dongle
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 80468745d..953eba56d 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1768,6 +1768,7 @@ static int btusb_setup_csr(struct hci_dev *hdev)
struct hci_rp_read_local_version *rp;
struct sk_buff *skb;
bool is_fake = false;
BT_DBG("%s", hdev->name);
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.unbrokendome.jackson.beanvalidation.BeanValidationModule;
import org.unbrokendome.jackson.beanvalidation.JsonValidated;
import javax.validation.ConstraintViolationException;
@t3hk0d3
t3hk0d3 / .zshrc
Created January 15, 2019 10:42
How to speed-up Powerline9k VCS on huge repositories
# Add following lines to the end of ~/.zshrc
# Disables git-untracked
POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-aheadbehind git-stash git-remotebranch git-tagname)
# Disables tracking of changed files
zstyle ':vcs_info:git:*' check-for-changes false
zstyle ':vcs_info:git:*' get-revision false
package Test {
use Keyword::Declare;
my $vars = {};
keyword let (Str $name, Block $block) {
$name =~ s/^("|')(.*)("|')$/$2/;
"my sub $name { \$vars->{$name} //= do $block }"
}
#include <stdio.h>
#include <stdlib.h>
#include <libfswatch/c/libfswatch.h>
#include <pthread.h>
#include <unistd.h>
/**
* $ ${CC} -I /usr/local/include -o "fswatch_test" fswatch_test.c /usr/local/lib/libfswatch.dylib
*/