#!/usr/bin/env bash
set -euo pipefail
# -------------------------------
# Force clean start for Bash session
# -------------------------------
# Clear any previously cached commands or functions
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
| --- | |
| # Metadata header (these go in Properties section) | |
| --- | |
| # {{title}} | |
| ## Metadata | |
| - **Author:** {{author}} | |
| - **Published:** {{published|date:"YYYY-MM-DD"}} | |
| - **Captured:** {{time|date:"YYYY-MM-DD HH:mm"}} |
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/gh-discuss | |
| #!/usr/bin/env bash | |
| set -e | |
| ORG="babbworks" | |
| echo "Fetching repositories for org '$ORG'..." | |
| # Get public + private repos into array | |
| mapfile -t REPO_ARRAY < <( |
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 | |
| # Configuration | |
| SCRIPTS_DIR="$HOME/docs/scripts/jrnl/prompts" | |
| mkdir -p "$SCRIPTS_DIR" | |
| read -p "New script filename (e.g., log-idea.sh): " filename | |
| read -p "Journal name (e.g., wp): " journal | |
| read -p "Entry title (e.g., Workpads @Story): " entry_title |
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
| Based on drafted bash script for receiving a set of questions via command line prompts, Copilot was consulted to advance this approach for gathering insights and context. Results from conversatoin pasted below. | |
| ++++++++++++++++++++++ | |
| peers8862 | |
| SUMMARIZE BUT ONLY ENTRIES ON MAY 16TH | |
| GitHub Copilot | |
| Summary of May 16th entries in j-coding.txt: |
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 | |
| # Prompt the user for structured input | |
| read -p "Topic: " topic | |
| read -p "Importance: " importance | |
| read -p "Discoveries: " discoveries | |
| read -p "Connections: " connections | |
| read -p "Technical Details: " technical | |
| # Build the entry using a heredoc |