Skip to content

Instantly share code, notes, and snippets.

@sehraf
sehraf / esphome.yml
Created July 13, 2025 08:06
ESPHome Brandson Equipment Turmventilator IR Codes
button:
- platform: template
name: "Speed"
device_id: id_venti
on_press:
remote_transmitter.transmit_pronto:
data: "0000 006D 003C 0000 0032 000F 0032 0010 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0010 0031 0010 0031 0010 0031 0031 0011 0010 0135 0031 0011 0031 0011 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0010 0031 0010 0031 0010 0031 0031 0011 0010 0135 0031 0011 0031 0011 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0010 0031 0010 0031 0010 0031 0031 0011 0010 0135 0031 0011 0031 0010 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0010 0031 0010 0031 0010 0031 0031 0011 0010 0135 0031 0011 0031 0011 0010 0031 0031 0011 0031 0011 0010 0031 0010 0031 0010 0031 0010 0031 0010 0031 0031 0011 0010 06C3"
- platform: template
name: "Power"
device_id: id_venti
@sehraf
sehraf / PKGBUILD
Created April 25, 2025 12:46
PKGBUILD for OrangePI RV2 firmware
pkgname=firmware-x1-oprv2
pkgver=k1.bl.v2.1.release.r1.g8b02530
pkgrel=1
pkgdesc="Firmware for the OrangePI RV2"
url="https://gitee.com/bianbu-linux/buildroot-ext/"
arch=('riscv64')
_branch='k1-bl-v2.1.y'
source=("${pkgname}::git+${url}#branch=${_branch}")
sha256sum=('d3c17265dcd0a16c6c5f6c648baeffa3')
Created with `sed 's/spacemit/ky/g; s/k1-x/x1/g; s/K1X/X1/g' k1-x_orangepi-rv2.dts | diff -u - x1_orangepi-rv2.dts`
https://github.com/spacemit-com/linux-k1x/blob/k1/arch/riscv/boot/dts/spacemit/k1-x_orangepi-rv2.dts
https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/x1_orangepi-rv2.dts
--- - 2025-04-16 17:59:33.685006538 +0200
+++ x1_orangepi-rv2.dts 2025-04-16 17:43:27.369753681 +0200
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
-/* Copyright (c) 2023 Spacemit, Inc */
@sehraf
sehraf / cleanup-pikaur.hook
Created September 23, 2024 19:07
Remove unwanted binaries installed by pikaur
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = pikaur
[Action]
Description = Removing adware
When = PostTransaction
Exec = /usr/bin/rm /usr/bin/pikasay
@sehraf
sehraf / 888ledcubewifi.md
Last active May 24, 2023 17:09
DIY 8x8x8 LED Cube WiFi Module communication

baurate: 57600
every line is terminated with \r\n

commands send by the MCU:

AT+CWMODE=3
AT+RST
AT+CIPMUX=1
AT+CIPSERVER=1
@sehraf
sehraf / foo.js
Created January 4, 2023 19:17
Tamper Monkey: Steam Free License Batch Remover
// ==UserScript==
// @name Steam Free License Batch Remover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://store.steampowered.com/account/licenses/
// @icon https://www.google.com/s2/favicons?sz=64&domain=simply-how.com
// @grant none
// ==/UserScript==
@sehraf
sehraf / PKGBUILD
Created April 18, 2022 21:10
creates symlinks for riscv64 distcc
pkgname=distccd-riscv64
pkgver=1
pkgrel=0
pkgdesc='Provides sym-links for distccd'
arch=('any')
license=('MIT')
source=()
sha256sums=()
depends=('distcc' 'riscv64-linux-gnu-gcc')
@sehraf
sehraf / PKGBUILD
Created April 10, 2022 18:11
PKGBUILD for riscv distccd support (symlinks)
pkgname=distccd-riscv64
pkgver=1
pkgrel=0
pkgdesc='Provides sym-links for distccd'
arch=('any')
license=('MIT')
source=()
sha256sums=()
depends=('distcc' 'riscv64-linux-gnu-gcc')
#include "AudioOutputFixedRates.h"
AudioOutputFixedRates::AudioOutputFixedRates(AudioOutput *dest)
{
sink = dest;
}
AudioOutputFixedRates::~AudioOutputFixedRates() {}
bool AudioOutputFixedRates::SetFixedRate(int hz)
#pragma once
#include <AudioOutput.h>
class AudioOutputFixedRates : public AudioOutput
{
public:
AudioOutputFixedRates(AudioOutput *dest);
virtual ~AudioOutputFixedRates() override;
virtual bool SetRate(int hz) override { return true; }