I hereby claim:
- I am shawnyeager on github.
- I am shawnyeager (https://keybase.io/shawnyeager) on keybase.
- I have a public key whose fingerprint is 1588 4904 ED7A BA05 E51D 9333 9DDC 0A8B A587 E694
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
""" | |
Convert Jekyll-formatted markdown files to prose.sh format. | |
This script transforms Jekyll blog posts to prose.sh format with the following enhancements: | |
1. Processes all .md files in the current directory | |
2. Creates a 'prose.sh' subdirectory for output files | |
3. Transforms front matter: | |
- Removes Jekyll-specific fields like layout | |
- Preserves title, date, description (with markdown removed) |
import json | |
import os | |
import re | |
import argparse | |
def sanitize_filename(title): | |
"""Convert a title into a safe filename by replacing invalid characters, preserving spaces.""" | |
# Replace invalid filesystem characters with spaces | |
invalid_chars = r'[\/:*?"<>|]' | |
sanitized = re.sub(invalid_chars, ' ', title.strip()) |
#!/usr/bin/env bash | |
# Usage: download-mp4.sh <YouTube_URL> | |
if [ -z "$1" ]; then | |
echo "Usage: download-mp4.sh <YouTube_URL>" | |
exit 1 | |
fi | |
URL="$1" |
#!/bin/bash | |
# Check if a search string is provided as a command-line argument | |
SEARCH_STRING="$*" | |
# Function to handle playback | |
play_content() { | |
# Use `ytfzf` to fetch the video URL | |
VIDEO_URL=$(ytfzf -L "$SEARCH_STRING" 2>/dev/null) |
/* Any CSS added here can be used to override theme CSS. */ | |
/* Use ":reload-theme" in Catapult to see changes. */ | |
/* For available classes, see the Catapult default "dark" theme: */ | |
/* https://github.com/otsaloma/catapult/blob/master/data/themes/dark.css */ | |
.catapult-input-entry { | |
font-family: "Cantarell", sans-serif; | |
} | |
.catapult-search-result-title { |
require ["fileinto", "imap4flags", "envelope"]; | |
if address :is :localpart ["from", "all"] [ | |
"do-not-reply", | |
"do_not_reply", | |
"donotreply", | |
"newsletter", | |
"no-reply", | |
"noreply", | |
"notification", |
I hereby claim:
To claim this, I am signing this object: