Skip to content

Instantly share code, notes, and snippets.

View paul-krohn's full-sized avatar

Paul Krohn paul-krohn

  • San Francisco, California
View GitHub Profile
@paul-krohn
paul-krohn / digital-pool-timestamps.js
Last active April 20, 2025 04:09
A bookmarklet to scrape YouTube timestamps from a Digital Pool tournament
javascript: (() => {
var match_rows = document.getElementsByClassName("streaming completed");
var output = "";
first_match_start = new Date(match_rows[0].childNodes[4].childNodes[0].textContent);
for (const match_row of match_rows) {
date_td = match_row.getElementsByTagName("td")[4];
date = date_td.getElementsByTagName("div")[0].getHTML();
match_start = new Date(date);
@paul-krohn
paul-krohn / docker_x11_macOS.md
Last active April 19, 2025 05:42
Docker X11 macOS

Preamble

There is a longstanding issue/missing feature/bug with sockets on Docker on macOS; it may never work; you'll need to use a network connection between Docker containers and X11 on macOS for the foreseeable future.

I started from this gist and made some adjustments:

  • the volume mappings aren't relevant/used, due to the socket issue above.
  • this method only allows X11 connections from your Mac, not the entire local network, which would include everyone on the café/airport WiFi.
  • updated to include using the host.docker.internal name for the the container host, instead.
  • you have to restart XQuartz after the config change.