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 22, 2026 20:23 — 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.

Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022.

Last updated: 08 January 2026

@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