Skip to content

Instantly share code, notes, and snippets.

View IshanDaga's full-sized avatar

Ishan Daga IshanDaga

View GitHub Profile
@IshanDaga
IshanDaga / markers.txt
Created May 31, 2026 18:54
XLRS TX BOOTSEL disconnect capture 2026-06-01
tx_boot_at_s: 15.0
command: picotool reboot --ser E4654C16432C3B22 -f -u
boot_elapsed_s: 15.2
exit_code: 0
stdout: The device was asked to reboot into BOOTSEL mode.
@IshanDaga
IshanDaga / result.txt
Created May 31, 2026 18:43
XLRS HW in-loop capture 2026-06-01 (120s D250 bench)
branch: main
commit: 52279f1
capture_secs: 120
tx_port: /dev/cu.usbmodem1101
rx_port: /dev/cu.usbmodem2
TX: {'samples': 120, 'avg': 100.0, 'max': 100, 'ge70': 120, 'ge90': 120, 'states': {'3': 120}, 'drops_34': 0, 'rec_43': 0}
RX: {'samples': 120, 'avg': 99.5, 'max': 100, 'ge70': 120, 'ge90': 120, 'states': {'3': 120}, 'drops_34': 0, 'rec_43': 0}
pass_90pct: True
@IshanDaga
IshanDaga / proto-to-map.go
Created March 2, 2024 10:51
Create a go map from any proto message without proto->json->map
package main
import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protodesc"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/types/descriptorpb"
"google.golang.org/protobuf/types/dynamicpb"
)
@IshanDaga
IshanDaga / proto-to-table.go
Last active April 12, 2023 07:40
Create PostgreSQL Tables from ProtoBuf Descriptors / Definitions [GoLang]
import (
"fmt"
"regexp"
"google.golang.org/protobuf/reflect/protoreflect"
)
func IsValidTableName(tableName string) bool {
// Table name can only contain alphanumeric characters and underscores
validName := regexp.MustCompile(`^[a-zA-Z0-9_]+$`).MatchString(tableName)