Skip to content

Instantly share code, notes, and snippets.

View ryan-blunden's full-sized avatar

Ryan Blunden ryan-blunden

  • Brisbane, Australia
View GitHub Profile
@ryan-blunden
ryan-blunden / custom-tool.md
Last active August 14, 2025 13:49
Gram video

create_dub_youtube_link

Purpose

Your objective is to create (not upsert) a Dub link specifically for YouTube videos that fetches the video metadata to populate the link title, description and image. If all the information you need is available in context then proceed immediately and do not ask for confirmation. Restrict tool usage to only the tools supplied. Your output should be informative but concise, like that of a CLI.

Step 1

Get the YouTube metadata for the provided YouTube URL {{youtubeUrl}}. If retrieving the youtube metadata step failed, do not proceed to the next step and let them know the cause of the failure.

Step 2

create_dub_youtube_link

Your objective is to create (not upsert) a Dub link specifically for YouTube videos that fetches the video metadata to populate the link title, description and image. If all the information you need is available in context then proceed immediately and do not ask for confirmation. Restrict tool usage to only the tools supplied. Your output should be informative but concise, like that of a CLI.

Step 1 Get the YouTube metadata for the provided YouTube URL {{youtubeUrl}}. If retrieving the youtube metadata step failed, do not proceed to the next step and let them know the cause of the failure.

Step 2 Create a Dub link using the fetched metadata as follows:

openapi: 3.1.0
info:
title: SWAPI - The Star Wars API
description: |
SWAPI (Star Wars API) is a RESTful API that provides comprehensive data about the Star Wars universe.
This API includes information about films, people, planets, species, starships, and vehicles from the Star Wars saga.
All endpoints are read-only and return JSON data. The API is hosted on a highly available CDN network
for fast response times and high reliability.
version: 1.0.0
openapi: 3.1.0
info:
title: Petstore - OpenAPI 3.1
description: |-
This is a sample Pet Store Server based on the OpenAPI 3.1 specification.
Some useful links:
- [OpenAPI Reference](https://www.speakeasy.com/openapi)
- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
@ryan-blunden
ryan-blunden / discord-openapi.yaml
Created October 27, 2024 23:49
sample-discord-openapi.yaml
openapi: "3.1.0"
info:
title: "Discord HTTP API (Preview)"
description: "Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details."
termsOfService: "https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service"
license:
name: "MIT"
identifier: "MIT"
version: "10"
externalDocs:
@ryan-blunden
ryan-blunden / pybites-intro.py
Created November 30, 2021 11:58
Pybites commuity intro message fun
from dataclasses import dataclass
import random
pybites_init_questions = [
'If you were to build a chatbot what would it do'
]
@dataclass
class PybitesIntro:
@ryan-blunden
ryan-blunden / doppler-pem-test.sh
Last active September 13, 2021 12:26
Doppler PEM Test Alpine
#!/usr/bin/env sh
apk add --update openssl
echo '\n[info]: Verify private key by extracting public key\n'
openssl rsa -in ./secrets/tls.key -pubout
tail -f /dev/null # Pretend to be a long-running process
@ryan-blunden
ryan-blunden / gist:4f37dad2e46face5a0f03c1e1e1fe436
Created August 12, 2021 04:11
mandalorion-gifs-secrets-template.yaml
projects:
- name: mandaloriongifs-python
description: Mandalorion GIFS generator using the Flask framework
environments:
- slug: dev
name: Development
configs:
- slug: dev
secrets:
dev:
@ryan-blunden
ryan-blunden / secrets_getsecretvalue.js
Created July 22, 2021 07:39
The secrets_getsecretvalue.js file demonstrates how to retrieve a secret from AWS Secrets Manager.
/**
* From https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-secrets-secrets_getsecretvalue.js.html
*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
@ryan-blunden
ryan-blunden / README.md
Created July 9, 2021 08:50
Doppler Cloudflare Pages Secrets Sync

Doppler Cloudflare Pages Secrets Sync Script

NOTE: This script is a work in progress

Bash script to sync secrets from Doppler to Cloudflare Pages using the Pages Update Project API.

Usage

The following enviroment variables must be set or else you will be prompted when running the script: