Skip to content

Instantly share code, notes, and snippets.

View defron's full-sized avatar

Kevin Thomer defron

View GitHub Profile
@defron
defron / theater-mode-youtube-stlying-fixes-ublock-origin
Last active October 29, 2025 02:15
fix youtube's desktop theater mode styling to be more like before via ublock origin
! works on my machine, may need tweaks, only tested in firefox
! please feel free to comment additional improvements
! make the new youtube ui make sense on a large desktop screen
! bring back 4-by-3 grid layout for the recommended videos
youtube.com##.ytp-fullscreen-grid-stills-container:style(grid-template-columns: repeat(4,1fr) !important; height: calc(100% - 48px) !important;)
youtube.com##.ytp-modern-videowall-still:style(display: block !important;)
youtube.com##.ytp-modern-videowall-still:hover .ytp-modern-videowall-still-info:style(opacity: 0.8 !important;)
youtube.com##.ytp-modern-videowall-still-info:style(position: absolute !important; bottom: 0; left: 0; opacity: 0.6; width: 100%; background-color: black !important;)
youtube.com##.ytp-modern-videowall-still-info:hover:style(opacity: 0.8 !important;)
@defron
defron / firefox-wayland-dropped-video-frames.md
Last active November 23, 2024 21:58
Fix issue with Firefox Wayland Dropped Frames on Youtube Videos

I was experiencing a significant amount of dropped frames during video playback after switching to Wayland and finally was able to find a fix that worked for me

During youtube playback I would experience 10+ frames dropped all at once, causing a noticable skip.

Saw a few people having similar issues:

https://askubuntu.com/questions/1520102/why-do-i-get-so-many-frame-drops-on-wayland-with-youtube-playback

https://forum.manjaro.org/t/my-browser-drops-a-bunch-of-frames-while-playing-youtube-videos/168839

@defron
defron / keebio iris ce
Created July 19, 2024 22:31
keebio iris ce keymap for loading in qmk configurator
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "keebio/iris_ce/rev1",
"keymap": "keebio_iris_ce_rev1_defron",
"layout": "LAYOUT",
"layers": [
[
"KC_GRV",
@defron
defron / sofle choc
Last active July 19, 2024 22:29
sofle choc - MPL 2.0
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "sofle_choc",
"keymap": "sofle_choc_sofle_choc_defron",
"layout": "LAYOUT",
"layers": [
[
"KC_GRV",
@defron
defron / simplified_loop.py
Last active March 20, 2024 04:45
this is equivalent
user_input = input("Plate: ")
punc = [".", " ", "?", "-", "+", ",", "/", "=", "!", ")", "(", "_", ";", "|", "*", "@", "#", "$", "&", "^", "\\", "~"]
for character in user_input:
has_punc = character in punc
if(has_punc):
print("Invalid")
break
@defron
defron / mint-txn-account-splitter.py
Created November 5, 2023 20:38
python script to split mint transactions by account name
# Python3 program to read mint transaction file and split it into account-based transaction files
import csv
account_txn_dict = dict()
# Open file
# TODO: loop over files in current dir for csvs and do each one
with open('transactions.csv') as txn:
@defron
defron / Daily-Balances.ps1
Last active November 5, 2023 16:00
Daily Balance based on current balance from mint transactions export
<#
.SYNOPSIS
Helps calculate daily balances from a mint transaction export
.DESCRIPTION
The Daily-Balances.ps1 script uses your current Balance and
an ACCOUNT-SPECIFIC export to calculate daily balances.
The Current Balance passed in will be set for the first date in the input csv file
and the script works backwards to the oldest date in the input csv file
@defron
defron / community.bethesda.net.stylish.css
Last active March 20, 2016 23:27
Decrapifying the community.bethesda.net website
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("community.bethesda.net") {
div#welcome-container{
display: none !important;
}
div#jive-body > header.j-page-header{
background-image: none !important;
height: 200px !important;
@defron
defron / exercise1.ui
Created November 19, 2015 05:10
PyQT learning exercise 1 solution
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<height>150</height>