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 / ser.sh
Created July 3, 2023 04:15
Controlling a MX42HS via Bash
#!/bin/bash
# Validate input is present and is 1-4
[[ $1 && $1 != *[^1-4]* ]] || { echo "Invalid input." >&2; exit 1; }
# Free TTY from any process reading it
lsof -t /dev/ttyUSB0 | xargs -r kill -9
# Set output to File Descriptor 3
exec 3</dev/ttyUSB0
@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

Emby Timeline

Emby

2019 January Emby releases 3.6 as 4.0, is now closed source

2018 September Speechles hired as Roku dev

@anthonylavado
anthonylavado / signall.sh
Last active November 3, 2021 07:21
To quickly build and upload Jellyfin.app for macOS
#!/bin/bash
# Clear the destination bundle and files if they already exist
echo "[INFO] Clearing existing files..."
rm -Rf "../Jellyfin.app"
rm -Rf "../Jellyfin.dmg"
rm -Rf "Jellyfin.app"
rm -Rf "Jellyfin.dmg"
# Create the bundle and folders we need
@anthonylavado
anthonylavado / Jellyfin-macos-signing.md
Last active April 24, 2020 05:59
Files being signed
codesign --entitlements Jellyfin_Server.entitlements --verbose --force --deep -o runtime --sign "Developer ID Application: Anthony Lavado"  "Jellyfin Server.app/Contents/Resources/server/ffmpeg"
codesign --entitlements Jellyfin_Server.entitlements --verbose --force --deep -o runtime --sign "Developer ID Application: Anthony Lavado"  "Jellyfin Server.app/Contents/Resources/server/jellyfin"
codesign --entitlements Jellyfin_Server.entitlements --verbose --force --deep -o runtime --sign "Developer ID Application: Anthony Lavado" "Jellyfin Server.app/Contents/Resources/server/ffprobe"

codesign --entitlements Jellyfin_Server.entitlements --verbose --force --deep -o runtime --sign "Developer ID Application: Anthony Lavado" "Jellyfin Server.app/Contents/Resources/server/System.Net.Security.Native.dylib"
codesign --entitlements Jellyfin_Server.entitlements --verbose --force --deep -o runtime --sign "Developer ID Application: Anthony Lavado" "Jellyfin Server.app/Contents/Resources/server/System.Security.Cryptograp

Keybase proof

I hereby claim:

  • I am anthonylavado on github.
  • I am anthonylavado (https://keybase.io/anthonylavado) on keybase.
  • I have a public key ASCkAuR2pjPMwG9m3undPvNnxBNrYzzVp_V1G0BfKuUVuwo

To claim this, I am signing this object:

@anthonylavado
anthonylavado / cleanup.sh
Last active April 19, 2020 20:50
Remove all traces of a Jellyfin library/config from a macOS system.
#!/usr/bin/env bash
rm -Rfv ~/.config/jellyfin
rm -Rfv ~/.cache/jellyfin
rm -Rfv ~/.local/share/jellyfin