Skip to content

Instantly share code, notes, and snippets.

@RyuKojiro
RyuKojiro / iqair-tasmota.md
Last active October 2, 2022 18:21
IQAir IR Codes for Tasmota

Hope this helps someone :)

I used the broadlink IR converter node package and the broadlink codes from AnilDaoud's broadlink bridge config to come up with this.

iqair.mjs

import { broadlinkToPulesArray, pulesArrayToBroadlink } from 'broadlink-ir-converter';

const one = '260060000001289512131213111412131213121411131213123813381139113912381238123813381238113913371213123912121313111412131213111412381213123812381437110005260001274b12000c630001284b12000c630001284a13000d050000000000000000'
@RyuKojiro
RyuKojiro / novafix.pkg
Last active March 19, 2017 22:36
An easy installer for novafix
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 11
.globl _base64_byte
.align 4, 0x90
_base64_byte: ## @base64_byte
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
@RyuKojiro
RyuKojiro / mtoc.sh
Last active June 13, 2016 05:34
Quick and dirty script to do everything necessary to build and install just mtoc from the Apple cctools. Used for setting up an EFI development environment.
#!/bin/sh
# This is an alternative to following the instructions at https://github.com/tianocore/tianocore.github.io/wiki/Xcode
CCTOOLS=cctools-877.8
LLVM=llvm-3.0
curl -O http://opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz
tar xvzf ${CCTOOLS}.tar.gz
rm ${CCTOOLS}.tar.gz
mv ${CCTOOLS}/include/llvm-c/Disassembler.h ${CCTOOLS}/Disassembler.backup.h
rmdir ${CCTOOLS}/include/llvm-c/