Skip to content

Instantly share code, notes, and snippets.

View awalsh882's full-sized avatar

Alexander Walsh awalsh882

View GitHub Profile
@awalsh882
awalsh882 / README.md
Created May 14, 2024 21:08 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@awalsh882
awalsh882 / deleteYoutubeWatchHistory.js
Created December 13, 2023 12:50 — forked from miketromba/deleteYoutubeWatchHistory.js
Delete YouTube watch history with filter
const ENABLED = false // Keep this false while testing to verify that it's working correctly
const DELETE_INTERVAL = 1000 // Amount of time in MS to wait between deletion (more likely to fail with a small number)
// This filter should return a boolean (true == delete video, false == keep video)
const MIN_DURATION_MS = 1000 * 60 * 1.5 // 1:30 mins
const SHOULD_DELETE = videoElement => {
try {
// Get the duration string