Skip to content

Instantly share code, notes, and snippets.

@Danielduel
Danielduel / create-m3u8-from-folder.ts
Created February 3, 2024 12:33
Tool for creating a m3u8 playlist file out of a folder of fragmented AV files (.ts).
/**
* Example usages
*
* deno run -A LINK_TO_RAW_OF_THIS_GIST
*
* deno run -A LINK_TO_RAW_OF_THIS_GIST \
* --path "/path/to/your/folder/with/data"
*
* deno run -A LINK_TO_RAW_OF_THIS_GIST \
* --path "/path/to/your/folder/with/data" \
@Danielduel
Danielduel / link-yarn-dependencies.ts
Created February 2, 2024 11:57
Deno cross-link dependencies of local projects using yarn.
@Danielduel
Danielduel / upgrade-yarn-dependencies.ts
Last active February 1, 2024 09:54
Use Deno to upgrade yarn dependencies with filters
import { parseArgs } from "https://deno.land/std@0.207.0/cli/parse_args.ts";
const args = parseArgs(Deno.args, {
string: [ "node_version", "project_path", "filters" ]
});
const requiredArg = (argument: unknown, argumentName: string) => {
if (!argument) {
console.log(`${argumentName} is required`);
Deno.exit();