Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
@maddox
maddox / restart
Created May 10, 2023 18:44
Sunshine on ChimeraOS
#!/bin/bash
set -e
cd "$(dirname "$0")"
./stop
./start
@maddox
maddox / README.md
Last active January 6, 2023 21:00
Process YouTube videos in Channels to get Thumbnail

This is a script to process YouTube videos on Channels DVR Server to apply a nicer thumbnail.

This assumes the YouTube ID and/or the published date is in the EpisodeTitle of the video. IE, Name of Video_(2023-01-06)_[akZxhhcwkR4]. This should be the case if the filename is Name of Video_(2023-01-06)_[akZxhhcwkR4].EXT in order to derive the video title from the filename when importing.

Published Date is optional.

When running this script, it will process every video in the video group. It will:

  1. Pull the YouTube id from the title
  2. Use it to generate the thumbnail url
@maddox
maddox / rg552_help.md
Last active February 9, 2023 18:47
RG552 Help Guide

RG552 Help Guide

This guide exists to document a few things about the default firmware that comes with the RG552. Hopefully this info helps you get your RG552 experience more in line with what you are used to.

Fix Rewind

The default firmware includes RetroArch 1.9.13 which includes a bug with rewind if you have RetroAchievements enabled. Disable RetroAchievements to fix rewind.

RetroArch Overides

@maddox
maddox / rg552_help.md
Created December 22, 2021 02:32
RG552 Help Guide

RG552 Help Guide

This guide exists to document a few things about the default firmware that comes with the RG552. Hopefully this info helps you get your RG552 experience more in line with what you are used to.

Fix Rewind

The default firmware includes RetroArch 1.9.13 which includes a bug with rewind if you have RetroAchievements enabled. Disable RetroAchievements to fix rewind.

RetroArch Overides

@maddox
maddox / handheld-screen-sizes.md
Last active February 5, 2023 04:20
Handheld Screen Sizes
model screen size resolution aspect as 4x3 as 16x9
RG280v 2.8" 320x240 4:3 2.8" 2.57"
RG351p/m 3.5" 480x320 3:2 3.24" 3.34"
RG351v 3.5" 640x480 4:3 3.5" 3.21"
RG552 5.36" 1920×1152 5:3 4.6" 5.27"
RGB10 Max (2) 5" 854x480 16:9 4.09" 5"
PSP 4.3" 480×272 16:9 3.51" 4.3"
PSP Go 3.8" 480×272 16:9 3.1" 3.8"
PS Vita 5" 960x544 16:9 4.09" 5"
@maddox
maddox / bb_price_check.rb
Created November 7, 2019 22:14
Best Buy Price Checker
require 'rubygems'
require 'nokogiri'
require 'open-uri'
products = []
products << ["Beverage Cooler", "https://www.bestbuy.com/site/insignia-115-can-beverage-cooler-black-stainless-steel/6027001.p?skuId=6027001"]
products << ["10TB drive", "https://www.bestbuy.com/site/wd-easystore-10tb-external-usb-3-0-hard-drive-black/6278208.p?skuId=6278208"]
products << ["Hue White 4 pack", "https://www.bestbuy.com/site/philips-hue-white-a19-bluetooth-smart-led-bulb-4-pack-white/6347040.p?skuId=6347040"]
@maddox
maddox / lineup.txt
Created August 18, 2018 04:07
hdhomerun premium channels
QVC
WEATH
FNC
CNN
HLN
MSNBC
CNBC
CSPAN
ESPN
ESPN2
@maddox
maddox / switches.yaml
Created November 3, 2016 14:10
HA MQTT Switches for Harmony API
switch:
- platform: mqtt
name: "Family Room TV"
state_topic: "harmony-api/hubs/family-room/state"
command_topic: "harmony-api/hubs/family-room/activities/watch-apple-tv/command"
qos: 0
optimistic: true
payload_on: "on"
payload_off: "off"
- platform: mqtt
@maddox
maddox / switches.yaml
Created September 30, 2016 03:05
MQTT Switches for Harmony Activities for Home Assistant
- switch
- platform: mqtt
name: "TV"
state_topic: "harmony-api/hubs/family-room/state"
command_topic: "harmony-api/hubs/family-room/activities/watch-apple-tv/command"
qos: 0
optimistic: true
payload_on: "on"
payload_off: "off"
- platform: mqtt
@maddox
maddox / rolling-stones-500-greatest-albums-of-all-time.md
Created July 22, 2015 15:31
Rolling Stone's 500 Greatest Albums of All Time