Skip to content

Instantly share code, notes, and snippets.

@peers8862
peers8862 / Safaris with Obsidian.yaml
Created February 1, 2026 20:34
If using Obsidian's Web Clipper, the default or custom templates can have custom note sections which extract different combinations of data from webpages. Here is one example spun up by Claude.
---
# 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"}}
@peers8862
peers8862 / Github Discussion from CL.json
Created January 29, 2026 07:57
Replace org or username on line starting with ORG
~/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 < <(
@peers8862
peers8862 / Bash Script for Package Installation and Error Handling.md
Created October 31, 2025 11:53
This code snippet sets up a bash environment for bash session, clears any previously cached commands or functions. It also checks if the backports repo is added and installs it from another repository using Docker's package-cache command.

Bash Script for Package Installation and Error Handling

Preview:
#!/usr/bin/env bash
set -euo pipefail

# -------------------------------
# Force clean start for Bash session
# -------------------------------
# Clear any previously cached commands or functions
@peers8862
peers8862 / Generating Prompt Templates for Specific Journals
Last active May 17, 2025 17:28
Rapid Development of Questionnaires at Command Line
#!/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
@peers8862
peers8862 / Advancing Bash Script for Journal Logging
Created May 16, 2025 20:59
How to gather richer details for each journal entry based on folder location and potentially the current repo and git activity
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:
@peers8862
peers8862 / Bash Script for Journal Entries via Prompts
Created May 16, 2025 20:33
Using JRNL tool and aliases to save research to specific journals
#!/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