Skip to content

Instantly share code, notes, and snippets.

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

Insidious Fiddler Codycody31

🏠
Working from home
View GitHub Profile
@Codycody31
Codycody31 / notesnook-theme-ayu-dark.json
Created June 14, 2026 05:03
Notesnook themed in Ayu Dark style
{
"$schema": "https://raw.githubusercontent.com/streetwriters/notesnook-themes/main/schemas/v1.schema.json",
"name": "Ayu Dark",
"id": "ayu-dark",
"version": 1.0,
"license": "MIT",
"homepage": "https://notesnook.com",
"description": "Ayu Dark for Notesnook. Palette derived from @dempfi's ayu color scheme (MIT).",
"colorScheme": "dark",
"compatibilityVersion": 1,
@Codycody31
Codycody31 / aar2-v2.0.0.schema.json
Last active April 5, 2026 17:42
WE LOVE STATS - After Action Review (aar2 - v2.0.0) - JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "WE LOVE STATS AAR2",
"description": "After Action Report v2 format used by WE LOVE STATS (stats.welovesquad.com) for Squad match replays. Encodes a full round as columnar time-series arrays sampled at 0.5s intervals. Each per-tick array is indexed by state tick, where tick 0 corresponds to the start of the round. Entities that spawn mid-round have a start_state field and shorter arrays (length = states_count - start_state + 1).",
"type": "object",
"required": [
"version",
"round_id",
"layer_name",
"map_name",
#!/usr/bin/env python3
import argparse
import subprocess
import sys
from pathlib import Path
def download_playlist(url: str, output_dir: Path, args) -> bool:
"""Download YouTube playlist with yt-dlp."""
@Codycody31
Codycody31 / yt-dl_embed_mp3.py
Created October 29, 2025 18:12
Take the outputed mp3, webp, and json file from yt-dl and merge into mp3 with best support for Navidrome
import argparse
import json
import sys
from pathlib import Path
from typing import Dict, Any, Optional, List
from mutagen.id3 import (
ID3, ID3NoHeaderError, APIC, TIT2, TPE1, TPE2, TALB, TCON, TDRC, COMM,
WXXX, TXXX
)
@Codycody31
Codycody31 / default.md
Created June 23, 2025 14:58 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@Codycody31
Codycody31 / caprover-volume-restore.sh
Last active May 26, 2024 02:57
Restore backed up volumes from CapRover
#!/bin/bash
# Define the backup tarball
backup_tarball="captain_volumes_backup.tar.gz"
# Check if the backup tarball exists
if [ ! -f $backup_tarball ]; then
echo "Backup tarball $backup_tarball not found."
exit 1
fi
@Codycody31
Codycody31 / caprover-volume-backup.sh
Last active July 27, 2025 15:37
Backup volumes for CapRover
#!/bin/bash
# List all volumes starting with 'captain--'
volumes=$(docker volume ls -q | grep '^captain--')
totalvolumes=$(echo "$volumes" | wc -l)
backedupvolumes=0
echo "Starting backup of $totalvolumes volumes."
# Create a tarball of these volumes