Skip to content

Instantly share code, notes, and snippets.

View erkobridee's full-sized avatar

Erko Bridee erkobridee

View GitHub Profile
export const removeQueryParam = (key: string) => {
const existingValue = getFromQuery(key)
if (existingValue === null) {
return;
}
const url = new URL(window.location as any);
url.searchParams.delete(key);
history.pushState({}, '', url);

Docker on Ubuntu

Step 01 - Install Docker

# If more information needed, head to this tutorial:
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04

# Firstly update your existing list of packages
sudo apt update
/*
code to get the channel id the youtube video page
the output in case of susscess will open on a new
browser tab the youtube channel feed as JSON
initially based on
https://paperless.blog/youtube-channel-web-feed-bookmarklet
but I got some edge cases where that doesn't work, so I reworked it
// https://jsfiddle.net/erkobridee/56nwr3d2/1/
/*
references
Digital Root | Math is Fun
https://www.mathsisfun.com/numbers/digital-root.html
Digital Root Calculator | Omni Calculator
https://www.omnicalculator.com/math/digital-root