Skip to content

Instantly share code, notes, and snippets.

View p2d0's full-sized avatar
🎯
Focusing

Andron p2d0

🎯
Focusing
View GitHub Profile

Turn off your monitor in Hyprland when streaming with Sunshine (without an HDMI Dummy Plug)

I often use Sunshine to stream my PC games to my Android phone using Moonlight, but one thing that always bothered me is that I cannot turn my monitor off while streaming or else no video would be sent to Moonlight.

To solve this I would need to:

  1. Use an HDMI Dummy Plug to get a fake monitor
  2. Move video content from the real monitor to the fake monitor
  3. Stream the fake monitor
  4. Turn off the real monitor
@veekaybee
veekaybee / normcore-llm.md
Last active November 16, 2025 04:22
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@gorenje
gorenje / move_visible_layers_to_layer_group.py
Last active February 24, 2023 20:11
Gimp 2.10 python plugin for moving all visible layers into an existing or new layer group
import os
from gimpfu import *
def _rec(layers, lst):
for l in lst:
if not l.visible: continue
if pdb.gimp_item_is_group(l): _rec(layers,l.layers)
else: layers.append(l)
(ns dnd.core
(:require
[reagent.core :as r]
[reagent.dom :as d]))
(def default-persons
[{:person/name "Kevin"
:person/age 29
:person/active? true}
{:person/name "Foo"
@oskar456
oskar456 / wgcf.py
Last active September 27, 2025 02:47
Cloudflare WARP linux client (using wg-quick for actual tunnel setup)
#!/usr/bin/env python3
import subprocess
import json
import os
from pathlib import Path
import requests
from requests.compat import urljoin
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class