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 python3 | |
""" | |
Claude Code Usage Tracker - Public Version | |
IMPORTANT: Run this script periodically (daily recommended) as Claude Code may purge | |
local conversation logs after an unknown retention period (estimated 30 days based on | |
feedback transcript retention policy). Set up a cron job to preserve your usage history. | |
Example crontab entry (runs daily at 8 AM): | |
0 8 * * * cd /path/to/script && python3 PUBLIC_claude_usage_tracker.py >/dev/null 2>&1 |
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
#!/bin/bash | |
# --------------------------------------------------------------------------- | |
# CRITICAL CAPSULE BACKUP SCRIPT (PUBLISHABLE VERSION) | |
# --------------------------------------------------------------------------- | |
# This script performs two types of backups every 30 minutes: | |
# | |
# 1. **MIRRORED BACKUPS**: One-way sync that mirrors directories to a target. | |
# - No versioning; it's a direct snapshot of the source as it exists. | |
# |
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 matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
# Create a new figure for the 3D plot | |
fig = plt.figure() | |
ax = fig.add_subplot(111, projection='3d') | |
# Data points for Time (x), Fulfillment (y), and Impact on Others (z) | |
time = [1, 2, 3, 4, 5] | |
fulfillment = [1, 2, 4, 6, 8] # Sample y-values for fulfillment |
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 python3 | |
""" | |
This Python script takes a YouTube URL from the clipboard, fetches detailed video metadata | |
and the transcript (if available), and formats it for easy pasting. | |
The extracted information includes: | |
- Video Title | |
- Uploader Name | |
- Description |
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 python3 | |
# This python script will take any YouTube URL in the clipboard & go out and grab the transcript (if available) and put it directly into the clipboard for pasting. | |
import pyperclip | |
from youtube_transcript_api import YouTubeTranscriptApi | |
import re | |
import tkinter as tk | |
def get_video_id(url): |
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 python3 | |
import pyperclip | |
from openai import OpenAI | |
# Function to summarize the text using a valid OpenAI model | |
def summarize_text(text, client): | |
# Define the instructions for the summarizer | |
instructions = """ | |
IDENTITY and PURPOSE |
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 os | |
import datetime | |
import matplotlib.pyplot as plt | |
# Configuration: User needs to set these variables | |
vault_path = '/path/to/your/obsidian/vault' # Replace with the actual path to your vault | |
novel_file = 'NaNoWriMo.md' # Replace with the actual file name if different | |
log_file = 'NaNoWriMo_Log.md' # This file will store the word counts for each day | |
target_words = 50000 # NaNoWriMo target word count |
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 requests | |
import feedparser | |
import os | |
from datetime import datetime | |
from bs4 import BeautifulSoup | |
import re | |
# **Configuration Section** | |
# ----------------------------------- | |
# **Important:** Replace the placeholder values below with your actual information. |
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
#!/bin/bash | |
# This script will take anything in your clipboard, including graphics and create a quick Obsidian note. The graphics will be placed in the `Media` folder under the `Notes` folder. The paths are hard-coded for your current Obsidian vault Notes folder. This script presumes a "Media" foler exists under your ""Notes" folder. | |
import os | |
import subprocess | |
from datetime import datetime | |
from PIL import Image | |
import pyperclip |
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 python3 | |
import os | |
import sys | |
import re | |
import praw | |
from praw.models import Submission, Comment | |
from datetime import datetime | |
import prawcore | |
from tqdm import tqdm | |
import time |