Skip to content

Instantly share code, notes, and snippets.

View SG60's full-sized avatar
๐Ÿ“œ

Sam Greening SG60

๐Ÿ“œ
View GitHub Profile
@hnykda
hnykda / sentry.server.config.ts
Last active August 3, 2025 13:46
sentry and open telemetry with standard OTEL/W3CT propagation nodejs/nextjs
// this file is loaded instrumentation.js via something like this:
// export async function register() {if (process.env.NEXT_RUNTIME === "nodejs"){await import("../sentry.server.config");}}
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { Resource, resourceFromAttributes } from "@opentelemetry/resources";
import {
W3CTraceContextPropagator,
CompositePropagator,
} from "@opentelemetry/core";
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active January 5, 2026 18:18 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: 05 January 2026

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22) used to be on website address bar after YouTube Video ID, (deprecated?). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git