Skip to content

Instantly share code, notes, and snippets.

View diogoribeirodev's full-sized avatar
🏠
Working from home

Diogo Ribeiro diogoribeirodev

🏠
Working from home
View GitHub Profile
@diogoribeirodev
diogoribeirodev / hls.sh
Created November 8, 2024 18:44 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@diogoribeirodev
diogoribeirodev / README.md
Created April 20, 2024 09:49 — forked from a-churchill/README.md
Documentation Search in Sanity

Documentation Search in Sanity

This Gist contains a sample query for searching text content in GROQ, Sanity's custom query language. We use something similar to this for Causal's documentation site. See more on our blog!

@diogoribeirodev
diogoribeirodev / repository.ts
Created April 18, 2024 08:48 — forked from cayter/LICENSE
Drizzle ORM Type-Safe Repository With PgTable
import { startSpan } from "@sentry/remix";
import type { StartSpanOptions } from "@sentry/types";
import {
type AnyColumn,
type AnyTable,
type BuildQueryResult,
type DBQueryConfig,
type DrizzleTypeError,
type Equal,
type ExtractTablesWithRelations,