Skip to content

Instantly share code, notes, and snippets.

View egormanga's full-sized avatar
👨‍💻

Egor Vorontsov egormanga

👨‍💻
View GitHub Profile
@ChuckMichael
ChuckMichael / bluetooth_version.md
Last active March 3, 2026 21:28
Bluetooth version. Based on Official Bluetooth SIG documentation: https://www.bluetooth.com/specifications/assigned-numbers/
Link Manager Protocol Version (LMP) LMP Hex Bluetooth Core Specification
LMP 0 0x00 Bluetooth Core Specification 1.0b
LMP 1 0x01 Bluetooth Core Specification 1.1
LMP 2 0x02 Bluetooth Core Specification 1.2
LMP 3 0x03 Bluetooth Core Specification 2.0 + EDR
LMP 4 0x04 Bluetooth Core Specification 2.1 + EDR
LMP 5 0x05 Bluetooth Core Specification 3.0 + HS
LMP 6 0x06 Bluetooth Core Specification 4.0
LMP 7 0x07 Bluetooth Core Specification 4.1
@osy
osy / tpm-rant.md
Last active June 11, 2026 10:45
TPM provides zero practical security

TPM provides zero practical security

TPM (Trusted Platform Module) is as useful for preventing real attackers as the TSA is at preventing real terrorists. The architecture is fundamentally flawed and most existing implementations are completely broken. I thought this argument was settled decades ago[1] when "trusted computing" was introduced mostly as a way to provide DRM and ownership capabilities to organizations. It has largely failed to impact the consumer market when it was introduced back in the early 2000s. However, recently there seems to be a movement by certain parties to reintroduce this failed product back to the market. Microsoft argues that in order to use Windows 11, you need TPM 2.0 compatible hardware because[2]:

The Trusted Platform Module(TPM) requirement ena

@Nielk1
Nielk1 / ExtendInput.DataTools.DualSense.TriggerEffectGenerator.cs
Last active April 23, 2026 03:53
Factories for all DualSense trigger effects
/*
* MIT License
*
* Copyright (c) 2021-2022 John "Nielk1" Klein
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
Copy of deleted topic: https://www.reddit.com/r/gamedev/comments/jumvi5/dualsense_haptics_leds_and_more_hid_output_report/
---
outputReport[0] = 0x02; // report type
outputReport[1] = 0xff; // flags determiing what changes this packet will perform
// 0x01 set the main motors (also requires flag 0x02); setting this by itself will allow rumble to gracefully terminate and then re-enable audio haptics, whereas not setting it will kill the rumble instantly and re-enable audio haptics.
// 0x02 set the main motors (also requires flag 0x01; without bit 0x01 motors are allowed to time out without re-enabling audio haptics)
// 0x04 set the right trigger motor
@dogtopus
dogtopus / ds5.desc.xml
Last active January 24, 2026 16:03
DualSense descriptor
<?xml version="1.0"?>
<!--
DualSense (DS5) USB HID Report Descriptor
Documentation WIP
TODO: Extract info from hid-playstation and cross-verify with us.
-->
@probonopd
probonopd / Wayland.md
Last active June 19, 2026 01:00
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@eagleusb
eagleusb / readme.md
Last active June 17, 2023 09:10
High Quality Linux Sound :)

HQLS

High Quality Linux Sound is just my memo about Linux sound stack configuration, as:

  1. I never remember all the tools to configure (ALSA, PulseAudio...)
  2. I never remember the correct parameter(s)
  3. It must be automated

ALSA

PulseAudio

@balloob
balloob / config_flow.py
Created October 16, 2019 21:04
Config flow to link Home Assistant with Home Assistant
"""Config flow to connect with Home Assistant."""
import logging
import voluptuous as vol
from homeassistant.helpers import config_entry_oauth2_flow
from .const import DOMAIN
@trapd00r
trapd00r / Extension.pm
Created December 14, 2018 16:50
All the filetypes in the universe
package File::Extension;
use strict;
use Carp ();
use Data::Dumper;
{
package Data::Dumper;
no strict 'vars';
$Terse = $Indent = $Useqq = $Deparse = $Sortkeys = 1;
@Mygod
Mygod / export-ble-infos.py
Last active April 23, 2026 02:54
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0