Skip to content

Instantly share code, notes, and snippets.

View brokosz's full-sized avatar
☁️

Brad Rokosz brokosz

☁️
View GitHub Profile
@brokosz
brokosz / docx2txt.py
Last active April 5, 2025 00:07
Some quick scripts to strip plain text out of common file types to support LLM data collections.
#!/usr/bin/env python3
import sys
from pathlib import Path
try:
from docx import Document
except ImportError:
print("Error: python-docx package not installed.")
print("Install it with: pip install python-docx")
sys.exit(1)
# PopClip - Obsidian daily note
name: Obsidian Daily
icon: iconify:majesticons:note-text-plus-line
options:
- identifier: vault
label: Vault Name
type: string
capture html: true
javascript: |
const vaultName = encodeURIComponent(popclip.options.vault);
@brokosz
brokosz / Obsidian Popclip.yml
Last active December 31, 2024 18:06
Obsidian Popclip Extensions
# PopClip - Obsidian daily note
name: Obsidian Daily
icon: iconify:majesticons:note-text-plus-line
options:
- identifier: vault
label: Vault Name
type: string
capture html: true
javascript: |
const vaultName = encodeURIComponent(popclip.options.vault);
@brokosz
brokosz / manage_vpn.sh
Last active September 15, 2024 18:13
A simple Bash script for quickly connecting to or disconnecting from VPNs on macOS via the command line.
#!/bin/bash
# Check if scutil command is available
if ! command -v scutil &> /dev/null; then
echo "Error: scutil command not found."
exit 1
fi
# Get the list of VPN services
vpn_list=$(scutil --nc list | grep 'VPN' | awk -F'"' '{print $2}')
@brokosz
brokosz / Keybase.md
Last active January 24, 2022 19:25
keybase proof

Keybase proof

I hereby claim:

  • I am brokosz on github.
  • I am brokosz (https://keybase.io/brokosz) on keybase.
  • I have a public key ASB_0MkTDujsHSyjN2eaW7XedCTEln7yioyXv8JCYSeObgo

To claim this, I am signing this object: