Skip to content

Instantly share code, notes, and snippets.

View daniel5151's full-sized avatar
🔨
Hammerin' on some 🦀 code

Daniel Prilik daniel5151

🔨
Hammerin' on some 🦀 code
View GitHub Profile
@daniel5151
daniel5151 / fw.ino
Created July 19, 2026 18:16
AC servo motor esp32 firmware
#include <WiFi.h>
#include <WebServer.h>
#include <DNSServer.h>
#include <Preferences.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Stepper.h>
// Configuration Constants
#define MQTT_MAX_PACKET_SIZE 2048
@daniel5151
daniel5151 / __init__.py
Last active August 9, 2026 17:42
Increase poll rate homeassistant/components/tplink/__init__.py
"""Component to embed TP-Link smart home devices."""
# pylint: disable=home-assistant-use-runtime-data # Uses legacy hass.data[DOMAIN] pattern
# Modified from https://github.com/home-assistant/core/blob/master/homeassistant/components/tplink/__init__.py
import asyncio
from collections.abc import Iterable
from datetime import timedelta
import logging
from typing import Any, cast
@daniel5151
daniel5151 / hotkey_hax.sh
Created February 1, 2019 02:27
very hacky function key support for Aero 15x - originally by @sparklespdx
#!/bin/bash
# Hotkeys Hax
#
# I'm still figuring out how to add HID drivers for this keyboard.
# I'm not sure if it's possible given that most of the keys that I care about
# (brightness controls, airplane mode, fan toggle) don't seem to register
# key releases; only key presses. The keyboard seems to be using a custom
# implementation for these keys, the codes don't follow the HID standard.
# I will document this behavior further in the README.
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index 1753048f8..74a191c66 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -96,7 +96,7 @@ static gboolean clutter_use_fuzzy_picking = FALSE;
static gboolean clutter_enable_accessibility = TRUE;
static gboolean clutter_sync_to_vblank = TRUE;
-static guint clutter_default_fps = 60;
+static guint clutter_default_fps = 144;
@daniel5151
daniel5151 / callback_manager.h
Last active February 3, 2022 09:07
Generic Callback Manager
#pragma once
#include <vector>
#include <cstddef>
/**
* Generic Callback Manager
*
* @tparam ...cb_args Types of callback arguments (aside from userdata)
*/