Skip to content

Instantly share code, notes, and snippets.

View anthonylavado's full-sized avatar
🤠
Howdy! I may be slow to respond.

Anthony Lavado anthonylavado

🤠
Howdy! I may be slow to respond.
View GitHub Profile
@anthonylavado
anthonylavado / tradfriZHAhowtos.md
Created July 4, 2023 20:03 — forked from HarvsG/tradfriZHAhowtos.md
Adding IKEA Tradfri Devices with ZHA on Home Assistant

Shortcut and On/Off switches

  1. Remove back cover with philips scredriver and instert provided battery
  2. In home assistant select a ZHA always-on zigbee device - such as a powered light or signal repeater in the same room the shortcut button will end up in
  3. Select "Add device via this device"
  4. Press the pair button 4 times on the back of the shortcut button
  5. Wait
  6. If using an On/Off switch and you want to bind it to a bulb for non-controller dependant control (i.e will work if home assistant is down)

Pairing On/Off Switches to IKEA Bulbs

@anthonylavado
anthonylavado / Broadlink RM codes for Xbox 360.txt
Created May 1, 2023 15:50 — forked from cjsmns/Broadlink RM codes for Xbox 360.txt
Remote Control codes for Xbox 360 for use with a Broadlink RM IR Blaster.
#
# INPUT - Logstash listens on port 8514 for these logs.
#
input {
udp {
port => "8514"
type => "syslog-cisco"
}
@anthonylavado
anthonylavado / gist:ae9a2c072ab6a79597f9e9461860e850
Created May 16, 2021 06:41 — forked from tomikazi/gist:1bb9d002292870b9c4c1e2b13996a001
Simple python script to control RGB WS2812B LED strip mounted under the top crossbar of on my Ender 3 Pro. Runs as a service on the OctoPi and integrates with Home Assistant as MQTT light.
#!/usr/bin/python3
import paho.mqtt.client as mqtt
import time
import board
import neopixel
led = neopixel.NeoPixel(board.D18, 15)
bright = 0.75
@anthonylavado
anthonylavado / FNA Notarization.md
Created March 27, 2020 03:21
Code signing and notarizing an FNA app on macOS

It's surprisingly simple to notarize an app using FNA. The structure of the app bundle doesn't follow macOS best practices but at the end of it you do get an app bundle that users can open up on macOS Catalina without any issues with Gatekeeper.

So here are the simple steps:

  1. Build your macOS .app bundle using MonoKickstart. You probably already have this and I'm not going to explain that here.

  2. Create a file called mygame.entitlements (the name really doesn't matter) with these contents:

    <?xml version="1.0" encoding="UTF-8"?>
@anthonylavado
anthonylavado / broken.svg
Created July 5, 2019 04:42 — forked from diachedelic/broken.svg
Netscape navigator broken image icon as SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.