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 / 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
@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
#!/bin/bash
kwriteconfig5 --file kwinrc --group Compositing --key Backend "OpenGL"
pkill kwin
kstart5 kwin_x11
killall plasmashell
kstart5 plasmashell
echo "Plasma renderer backend switched to OpenGL and plasmashell restarted."
@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 / 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
)
#!/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."""