Skip to content

Instantly share code, notes, and snippets.

@kylefmohr
kylefmohr / ir_nec_onforu_rgb_flood_lights.cpp
Created December 31, 2023 01:43
Infrared Remote Codes for "Onforu 4 Pack RGB LED Flood Light 500W Equivalent, DIY Color Changing Stage Lights with Remote, IP66 Indoor Outdoor Land"scape Floor Strobe Light
/*
See image here for how I mapped the numbers to the buttons https://i.imgur.com/TOTne17.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: kyle
Session History: Big Honkin Lights Remote Codes
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : NEC : 44 : 00FFE01F : 32 : 0
1 : NEC : 43 : 00FF609F : 32 : 0
2 : NEC : 42 : 00FFA05F : 32 : 24
@kylefmohr
kylefmohr / UNICROWN_DreamColor_5050_RGB_IR_Codes.cpp
Created December 25, 2023 03:31
Remote Control Infrared Codes for UNICROWN DreamColor 5050 RGB LED Strip Lights Remote Control
/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: kyle
Session History: Remote Control Infrared Codes for UNICROWN DreamColor 5050 RGB LED Strip Lights Remote Control
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : NEC : 4 : 00FF28D7 : 32 : 40
1 : NEC : 3 : 00FFC837 : 32 : 40
2 : NEC : 2 : 00FF8877 : 32 : 40
3 : NEC : 1 : 00FF08F7 : 32 : 31
4 : NEC : 8 Hours : 00FF02FD : 32 : 40
@kylefmohr
kylefmohr / Tatazone_RGB_COB_LEDs_Remote_IR_Codes.cpp
Created December 25, 2023 03:23
Remote Control Infrared Codes for "Tatazone 16.4ft Bluetooth RGB COB Led Strip Lights with Remote"
/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: kyle
Session History: Tatazone 16.4ft Bluetooth RGB COB Led Strip Lights with Remote
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : NEC : Timer2 : D564DA25 : 32 : 0
1 : NEC : Timer1 : D56404FB : 32 : 0
2 : NEC : Music2 : D564DC23 : 32 : 0
3 : NEC : Music1 : D564D22D : 32 : 0
4 : NEC : Christmas : D5649867 : 32 : 0
@kylefmohr
kylefmohr / Shield_Intents.MD
Created August 15, 2023 17:02 — forked from mcfrojd/Shield_Intents.MD
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@kylefmohr
kylefmohr / ATT.U-Verse.S30-S1B.IR.Codes.md
Last active August 14, 2023 12:52
AT&T U-Verse S30-S1B Decoded IR Codes

AT&T U-Verse S30-S1B Decoded IR Codes

This remote was a challenge, so I figured I'd share my findings because I didn't see this anywhere else online.

It uses the obscure "RCMM" protocol, sometimes referred to as "Nokia". RCMM can be sent in sizes of 12, 24, or 32 bits, this remote exclusively uses 32 bit codes. Another quirk of the protocol is that each button has two codes, one with a bit called "toggle" activated and one without. I've included both codes for each button.

You'll notice that VOL+, VOL-, and Mute aren't included, this is because these codes are sent directly to your TV, and will vary based on your setup. Also, the remote will send an additional "Power on/off" signal to your TV when you press the power button, but this signal is not included in the chart.

Button No. Button Name Command (no toggle bit) Command (toggle bit)
1 Power 0x2340260C 0x2
@kylefmohr
kylefmohr / n8n-docker-compose.yml
Created May 29, 2023 17:28
n8n-docker-compose.yml for StackScript
version: '3'
services:
traefik:
image: 'traefik'
command:
- '--api=true'
- '--api.insecure=true'
- '--api.dashboard=true'
- '--providers.docker=true'
@kylefmohr
kylefmohr / Ubuntu-Focal-To-Debian-Bullseye-with-Proxmox.sh
Last active February 2, 2023 00:44
WARNING do not use this on any system you care about, there's a good chance it will irreversibly screw up your installation. Just documenting this for myself.
#!/bin/bash
#Converts an Ubuntu Focal installation to a Debian Bullseye installation
#This script is intended to be run on a fresh Ubuntu Focal installation
rm -rf /etc/apt/sources.list.*
# Append the Debian Bullseye sources to the sources.list file, keeping the Ubuntu sources for now
cat << EOF >> /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free"
@kylefmohr
kylefmohr / test.sh
Created December 7, 2022 07:46
CrystalDiskMark but for Linux Command Line (NOT MY SCRIPT, found here: https://unix.stackexchange.com/a/480191/516248)
#!/bin/bash
#############################################################################################################
#Changelog #
#############################################################################################################
#Added prompts for user input to configure script instead of relying on hardcoded settings.
#Added a lot of errorchecking
#The script is now optionally compatible with dash (this is the reason for there being a sed command at the end of every echo -e instance, dash liked to print the -e part when I was testing.)
#Vastly improved compatibility across distributions
#Special thanks to everyone who contributed here: https://gist.github.com/i3v/99f8ef6c757a5b8e9046b8a47f3a9d5b
#Also extra special thanks to BAGELreflex on github for this: https://gist.github.com/BAGELreflex/c04e7a25d64e989cbd9376a9134b8f6d it made a huge difference to this improved version.
@kylefmohr
kylefmohr / InstallAndUpgradeKaliWSL2.md
Last active October 12, 2022 22:02
This script will work around the issues present in Kali's Windows Subsystem for Linux version, which currently errors when you try to `apt update`, and if you get around that, errors during an `apt upgrade`. This was last tested as working on 10/12/2022

In Powershell, before you've installed Kali:

wsl --set-default-version 2
wsl --install -d kali-linux

Now create your Kali username and password. Then...

sudo su
@kylefmohr
kylefmohr / prox7.sh
Created May 3, 2022 20:49
This script will install the latest compatible version of Proxmox on top of an existing Debian 11 Bullseye installation. It also installs fail2ban and includes the fail2ban configs sourced from the official Proxmox wiki
#!/bin/bash
#This script assumes that you have a domain name with a DNS record pointed to Proxmox's public IP
echo "Enter the domain name that will resolve to this servers IP address"
read hostname
sudo apt update && sudo apt full-upgrade -y
hostnamectl set-hostname $hostname
myip=$(curl --silent ifconfig.me)
echo "127.0.0.1 localhost" > hosts