Skip to content

Instantly share code, notes, and snippets.

@antifessional
antifessional / How to have Traefik Docker listening on two ip addresses (or more)s
Last active October 16, 2022 20:25
How to set up traefik on docker to listen to multiple ip addresses
Why
====================
For example, so that your firewall can apply different rules to different services
based on ip
What is the problem:
====================
docker allows you to have one ip address per network interface.
@spyesx
spyesx / youtube_watch_later.js
Last active March 27, 2024 18:58
Get URLs of your youtube watch later playlist
// Execute this in the console of on your own playlist
var videos = document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer');
var r = [];
var json = [];
r.forEach.call(videos, function(video) {
var url = 'https://www.youtube.com' + video.getAttribute('href');
url = url.split('&list=WL&index=');
url = url[0];
@dherman
dherman / realms-api.md
Last active March 8, 2024 07:04
ES6 Realms API

Notational Conventions

This section describes the conventions used here to describe type signatures.

A [T] is an array-like value (only ever used read-only in this API), i.e., one with an integer length and whose indexed properties from 0 to length - 1 are of type T.

A type T? should be read as T | undefined -- that is, an optional value that may be undefined.

Realms