Skip to content

Instantly share code, notes, and snippets.

@adamdroberts
adamdroberts / Scan screen for Progress bar
Last active June 29, 2025 23:37
MacOS swift code to detect NSProgressIndicator on screen in any application
import Cocoa
import ApplicationServices
/// Traverses the view hierarchy of all windows associated with the current application
/// to find if any view is an NSProgressIndicator.
///
/// - Returns: `true` if at least one NSProgressIndicator is found, `false` otherwise.
@MainActor func findNativeProgressBarsInAllWindows() -> Bool {
// Get the shared application instance
let app = NSApplication.shared
@adamdroberts
adamdroberts / gist:16a5ba2649a14e245d6d102e63564976
Last active June 25, 2026 18:23
Rejection Sensitive Dysphoria and Emotional Dysregulation - GPT 5.5 Pro Deep Research

Rejection Sensitive Dysphoria and Emotional Dysregulation

Executive summary

This report examines Rejection Sensitive Dysphoria (RSD) against the broader construct of emotional dysregulation. The central conclusion is that RSD is best regarded, at present, as a clinically recognisable but weakly validated descriptive label rather than an established diagnostic entity. By contrast, emotional dysregulation is a well-supported, transdiagnostic dimension with substantial evidence across ADHD, borderline personality disorder (BPD), mood and anxiety disorders, and other conditions. In ADHD specifically, emotional dysregulation is common, impairing, and increasingly argued to be part of the disorder’s core psychopathology, even though it is still not part of DSM diagnostic criteria. Systematic reviews and meta-analyses support this broader claim far more strongly than they support RSD as a distinct construct. citeturn17search5turn17search2turn35search1turn5search12

A key analytical disti

@adamdroberts
adamdroberts / battlenet-linux-cachyos-rtx3090-optimized-edited.md
Created August 12, 2026 22:43 — forked from vocino/battlenet-linux-cachyos-rtx3090-optimized-edited.md
Battle.net on Linux - CachyOS RTX 3090 simple robust setup (One Prefix, One Manager, One Shortcut)

Battle.net on Linux: My CachyOS RTX 3090 Setup (One Prefix, One Manager, One Shortcut)

I run WoW retail, Diablo IV, Hearthstone, Heroes of the Storm, and Overwatch 2 native on CachyOS, RTX 3090 24GB, Wayland KDE. This is the setup that works right now. One prefix, one manager, one shortcut.

Five launchers and three Proton versions break. I ran that.

TL;DR: The Opinionated Version

  • One shared Battle.net prefix: ~/Games/battlenet
  • One manager: Lutris 0.5.22