Skip to content

Instantly share code, notes, and snippets.

@Yuikawa-Akira
Yuikawa-Akira / AtomS3R_pixel-art_style_camera.ino
Last active April 11, 2025 15:29
AtomS3R Pixel-art style camera
#include <esp_camera.h>
#include <FastLED.h>
#include <SPI.h>
#include <SD.h>
#include <M5Unified.h>
#define KEY_PIN 1
#define LED_PIN 2
#define POWER_GPIO_NUM 18
@marcnewlin
marcnewlin / dump-fw.py
Created May 23, 2020 03:10
unifying dongle firmware readout - tested on CU0007 with FW rev RQR12.11
#!/usr/bin/env python
# sorry this is Python 2 -- the bootloader trigger breaks with Python 3 and I was too lazy to debug
import usb, time, struct
# Logitech Unifying dongle
class unifying_dongle:
# constructor
@ceres-c
ceres-c / CR95HF_ICODE_psw_dump.py
Created December 31, 2019 12:54
CR95HF Python script to read NXP ICODE tags in privacy mode
#!/usr/bin/python3
# Author: ceres-c 2019-12-29
# Authenticate to ICODE SLI tags
import hid
# Global defines & commands
password = [0x00, 0x00, 0x00, 0x00] # You have to find it yourself, try to search online in german ;-)
@markusressel
markusressel / esphome_neopixel_clock_effect.yaml
Last active December 23, 2024 12:26
ESPHome configuration example to create an animated clock using the Neopixel 60 LED ring
Moved to https://github.com/markusressel/ESPHome-Analog-Clock
esphome:
name: plant_moisture
platform: ESP32
board: esp32dev
wifi:
ssid: "spam"
password: "eggs"
# Enable logging
@me-no-dev
me-no-dev / IP5306.ino
Last active September 4, 2023 08:22
Sketch with IP5306 integration
#include "Arduino.h"
#include "Wire.h"
/*
** IP5306 Power Module
*/
/* M5 Defaults
KeyOff: Enabled
BoostOutput: Disabled
@seidler2547
seidler2547 / convert_ha_sqlite2mysql.sh
Last active October 23, 2024 13:02
One-liner to convert an existing Home-Assistant SQLite database to MySQL
# prerequisites:
## install software
apt install mariadb-server libmariadbclient-dev sqlite3
## install mysqlclient in virtualenv
su -c 'homeassistant/bin/pip3 install mysqlclient --upgrade' -l homeassistant
## create database
mysql -e 'CREATE SCHEMA IF NOT EXISTS `hass_db` DEFAULT CHARACTER SET utf8'
## create user (use a safe password please)
mysql -e "CREATE USER 'hass_user'@'localhost' IDENTIFIED BY 'hass_pw'"
mysql -e "GRANT ALL PRIVILEGES ON hass_db.* TO 'hass_user'@'localhost'"
@0xFelix
0xFelix / codes.txt
Last active July 15, 2019 10:47
Sonoff RF Bridge 433 / ESPurna and Brennenstuhl RCS 1000 N
Sonoff RF Bridge 433 / ESPurna and Brennenstuhl RCS 1000 N
Taken from
http://tinkerman.cat/decoding-433mhz-rf-data-from-wireless-switches-the-data
and
https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf
and
https://github.com/pimatic/rfcontroljs/blob/master/src/protocols/switch2.coffee
Protocol 'switch2' (Elro)
@mnadeem
mnadeem / pom.xml
Created July 15, 2017 16:02
Add non maven jar in maven way
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.demo.app</groupId>
<artifactId>demo-app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<version.maven-install-plugin>2.5.2</version.maven-install-plugin>
<version.non-maven1>1.0.0</version.non-maven1>
@kost
kost / esp8266-wifi-beacon-generator.ino
Created April 16, 2016 15:14
ESP8266 WiFi Beacon Generator - Generate SSID beacon frames on ESP8226
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
}
byte channel;
int maxssids=10; /* how much SSIDs we have */
char *ssids[] = {