This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # extract-frames.sh | |
| #!/usr/bin/env bash | |
| # Purpose: Extract a frame every 2 seconds from a video using Dockerized ffmpeg, | |
| # saving frames to a directory named <basename>_frames in the host CWD. | |
| set -euo pipefail | |
| IMAGE="${FFMPEG_IMAGE:-jrottenberg/ffmpeg:latest}" | |
| if [[ $# -ne 1 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| coolify: | |
| image: "${REGISTRY_URL:-ghcr.io}/coollabsio/coolify:${LATEST_IMAGE:-latest}" | |
| volumes: | |
| - type: bind | |
| source: /mnt/user/appdata/coolify/source/.env | |
| target: /var/www/html/.env | |
| read_only: true | |
| - /mnt/user/appdata/coolify/ssh:/var/www/html/storage/app/ssh | |
| - /mnt/user/appdata/coolify/applications:/var/www/html/storage/app/applications |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/clients/polymarket-gamma.ts | |
| // Purpose: Strongly-typed wrapper around the Polymarket Gamma REST API using fetch. Includes response interfaces and pagination helpers. | |
| // ChatGPT Thread: https://chatgpt.com/share/68ed3e92-bb08-8002-bd03-c86e1f8fba96 | |
| export type FetchLike = (input: RequestInfo, init?: RequestInit) => Promise<Response>; | |
| type Primitive = string | number | boolean; | |
| type ParamValue = Primitive | Primitive[]; | |
| type Params = Record<string, ParamValue | undefined>; | |
| function toQuery(params?: Params): string { | |
| if (!params) return ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "fire", | |
| # "magentic" | |
| # ] | |
| # /// | |
| import fire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "jsr:@supabase/functions-js/edge-runtime.d.ts"; | |
| import Stripe from "npm:stripe"; | |
| import { createClient } from "jsr:@supabase/supabase-js@2"; | |
| import headers from "../_shared/headers.ts"; | |
| import type { Database } from "../_shared/database.types.ts"; | |
| type CheckoutRequest = { | |
| price?: string; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- OBS Timestamp Marker Script | |
| -- Allows marking timestamps during recording and saves them to a CSV file | |
| -- Set a hotkey to mark moments in your recording that you can review later | |
| obs = obslua | |
| local marks = {} | |
| local recording_start_time = 0 | |
| local settings_hotkey = "" | |
| local settings_directory = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Get Notion Page as Markdown", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "workflowInputs": { | |
| "values": [ | |
| { | |
| "name": "id" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Helper function to extract plain text from a rich_text array */ | |
| function parseRichText(richTextArray) { | |
| if (!richTextArray || !Array.isArray(richTextArray)) return ""; | |
| return richTextArray.map(rt => rt.plain_text).join(""); | |
| } | |
| /* Recursively convert a list of notion blocks into a Markdown string */ | |
| function convertNotionBlocksToMarkdown(blocks, indentLevel = 0) { | |
| const indent = " ".repeat(indentLevel); // two spaces per indent level | |
| let md = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Name of the Docker container | |
| CONTAINER_NAME="avalanche-node" | |
| # Directory for persistent data | |
| DATA_DIR="$(pwd)/avalanche" | |
| # AvalancheGo Docker image | |
| IMAGE="avaplatform/avalanchego:latest" | |
| # Mainnet network ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getRandomElement(arr) { | |
| if (!Array.isArray(arr) || arr.length === 0) { | |
| throw new Error('The input must be a non-empty array.'); | |
| } | |
| const randomIndex = Math.floor(Math.random() * arr.length); | |
| return arr[randomIndex]; | |
| } | |
| const items = $input.all(); |
NewerOlder