Skip to content

Instantly share code, notes, and snippets.

@iamthenuggetman
iamthenuggetman / sunshine-on-bazzite.md
Last active February 20, 2026 03:57
Sunshine on Bazzite with virtual display
  1. First connect whatever display you want to use Moonlight on. I'll be using a 65" Roku TV. I connected it to my laptop running Fedora and after my system detected it I use for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done to find which directory has the EDID file for me it's HDMI-A-1

  2. Copy that edid file to your home directory cp /sys/class/drm/card0-HDMI-A-1/edid ~/. Now get that edid file over to your Bazzite (streaming machine). I used LocalSend to transfer it.

  3. Create a directory to store this new edid file sudo mkdir -p /usr/local/lib/firmware then place the file in there sudo mv ./edid.bin /usr/local/lib/firmware/

  4. Add this new edid to your kernel args sudo rpm-ostree kargs --append-if-missing="firmware_class.path=/usr/local/lib/firmware drm.edid_firmware=HDMI-A-1:edid.bin video=HDMI-A-1:e"

  5. Reboot systemctl reboot. After you log back into Bazzite open up your Display Configuration window (right-click on desktop) and notice you h

@kmplngj
kmplngj / geekmagic-smalltv-07c9f4.yaml
Last active March 12, 2026 17:03
GeekMagic Display Small TV ESPHome Config
# This ESPHome configuration file is for a GeekMagic Display device (esp01).
# It sets up the device to display pages of text and notifications,
# with customizable intervals and padding. The display is updated
# periodically and can show different pages based on Home Assistant sensors.
# # License & Terms
# **Free and Open Use** - This code may be freely used, modified, and distributed by anyone.
# **Copyleft Requirement** - Any derivative works, modifications, or forks must also be
# distributed freely under the same terms. You cannot restrict access to modified versions.
# **Attribution Note** - This code was primarily written with AI assistance.
@TheGroundZero
TheGroundZero / esp32_tcam.yaml
Created July 16, 2021 20:08
ESPHome config for LILYGO® TTGO T-Camera ESP32
# https://s.click.aliexpress.com/e/_9y4QA5
# Based on https://gist.github.com/Snipercaine/d8345571563536e9661422c3509d1119
# And https://community.home-assistant.io/t/working-esphome-config-for-ttgo-esp32-camera-board-with-microphone/126231
# Note: pins are not the same as in the docs above and even the picture on AE differs from the picture in the box
#
# Folder structure based on Frenck's config
# https://github.com/frenck/home-assistant-config/tree/master/config/esphome
substitutions:
slug: esp32_tcam
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from datetime import datetime, timedelta
# Following are defaults which can be overridden later on
args = {
'owner': 'dimon',
'start_date':datetime(2018, 11, 1),
'provide_context':True
}
@arikfr
arikfr / README.md
Last active September 10, 2025 05:01
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
@borgstrom
borgstrom / human_time_duration.py
Created May 9, 2018 04:00
Python: Convert seconds (duration) to human readable string
TIME_DURATION_UNITS = (
('week', 60*60*24*7),
('day', 60*60*24),
('hour', 60*60),
('min', 60),
('sec', 1)
)
def human_time_duration(seconds):
@buttreygoodness
buttreygoodness / install_chrome_with_deps_deb_16.04.sh
Last active June 10, 2022 15:29
Install chrome with dependencies for selenium on ubuntu 16.04
#!/usr/bin/env bash
# Abbreviated version of:
# https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@vladfil
vladfil / media.css
Created July 24, 2017 19:04
Media CSS
/*========== Desktop First ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px){
/**/
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px){
/**/
@joyrexus
joyrexus / README.md
Last active February 23, 2026 21:18
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@nonohry
nonohry / Sublime Text 3 License Key
Created March 30, 2015 05:30
Sublime Text 3 License Key
—– BEGIN LICENSE —–
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D