Skip to content

Instantly share code, notes, and snippets.

@foosel
foosel / README.md
Last active February 2, 2025 17:51
OBS script that updates the YouTube livechat URL on a browser source on stream start.

youtube-live-chat-update.py

OBS script that updates the YouTube livechat URL on a browser source on stream start to the livechat associated with the (first) current livestream on a given channel. If no livestream is active, a placeholder page saying "No Stream." will be injected. You can style the text via the css class .nostream to match your background etc.

You will need a YouTube API key, see https://developers.google.com/youtube/v3/getting-started and https://developers.google.com/youtube/registering_an_application for more information on how to go about that.

Additionally you will require the channel ID of the channel for which you want to query the current live stream. You can retrieve that by inspecting the web site source of the channel in question and looking for externalId.

To use, download youtube-live-chat-update.py and add it as script to OBS Studio. Note: Be sure to configure a valid Python environment first, see here for more details.

@solarce
solarce / getting_more_familiar_with_go_resources.md
Last active June 19, 2017 13:54
A list of resources for getting more familiar with Go

Getting more familiar with Go

@OlegIlyenko
OlegIlyenko / Event-stream based GraphQL subscriptions.md
Last active July 4, 2024 07:31
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@staltz
staltz / introrx.md
Last active April 24, 2025 06:10
The introduction to Reactive Programming you've been missing
@0chroma
0chroma / hacking-into-the-pentagon.service
Last active January 25, 2024 18:19
a systemd service that hacks the pentagon when ur system turns on, turns ur pc into a sick 1337 hacking machine
#a systemd service that hacks the pentagon when ur system turns on
#turns ur pc into a sick 1337 hacking machine
[Unit]
Description=Hacking into the pentagon
[Service]
Type=simple
ExecStart=/bin/sh -c "ping defense.gov"