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 / 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.
@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 / 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

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 / 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
@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

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 / 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
#
# INPUT - Logstash listens on port 8514 for these logs.
#
input {
udp {
port => "8514"
type => "syslog-cisco"
}
@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.