Skip to content

Instantly share code, notes, and snippets.

View alexander-paterson's full-sized avatar

Alex alexander-paterson

  • Scotland
  • 03:07 (UTC)
View GitHub Profile
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active December 8, 2025 14:39
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
// ==UserScript==
// @name Nova YouTube beta
// @namespace yt-nova
// @version 0.50.0c
// @description Powerful control on YouTube
// @author raingart <[email protected]>
// @license Apache-2.0
// @icon https://raw.github.com/raingart/Nova-YouTube-extension/master/icons/48.png
@danrahn
danrahn / BetterPlexDialogs.js
Last active October 19, 2024 13:22
Userscript that adjusts the width and height of dialogs in the Plex Web App, and remembers the last tab you selected
// ==UserScript==
// @name Better Plex Modal Dialogs
// @version 0.4
// @description Improve modal dialogs in the Plex Web App
// @author danrahn
// @match https://app.plex.tv/*
// @match http://localhost/*
// @match http://127.0.0.1/*
// @match https://customPlexDomain.example.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=plex.tv
@Desani
Desani / ScanMedia.md
Last active November 4, 2025 22:21
3.6 - Corrected issues with determining terminal size in specific use cases. Added file encoding thanks to recommendation by LordKenmou. Fixed update script checker.

This script utilizes ffmpeg, the same tool Plex uses, to decode the video stream and captures the output for any errors during playback and sends the playback errors to a log file. So essentially it plays the video in the background faster than regular speed. It then checks the error output log file to see if there is anything inside. If ffmpeg was able to cleanly play the file, it counts as a passed file. If there is any error output, an error could be anything from a container issue, a missed frame issue, media corruption or more, it counts the file as failed. So if there would be an issue with playback and a video freezing, it would be caught by this method of checking for errors. Because of the nature of the error log, any errors that show up, even simple ones, will all count as a fail and the output is captured so you can view the error log. Some simple errors are easy to fix so I have included an auto-repair feature which attempts to re-encode the file which is able to correct some issues that would cau

@nerdius
nerdius / vimium-arc-dark.css
Last active September 28, 2023 20:19
Arc Dark theme for styling Vimium link hints
/*
Arc Dark theme for styling Vimium link hints
By Giorgi Gzirishvili (@giogziro95). This code is in the public domain.
To use:
1. Copy the code.
2. Go to the Vimium options.
3. Click Show Advanced Options.