Skip to content

Instantly share code, notes, and snippets.

@davidbb
davidbb / libby-parse.fish
Last active January 23, 2026 18:34
Fish shell script to create m4b-tool metadata from Libby audiobook metadata
#!/usr/bin/env fish
# Check if jq is installed
if not command -v jq &> /dev/null
echo "Error: jq is required but not installed. Please install it first."
exit 1
end
# Check if metadata.json exists in ./metadata/
if not test -f ./metadata/metadata.json
#!/usr/local/bin/python3.5
from bs4 import BeautifulSoup
import requests
import json
URL="https://weather.gc.ca/warnings/report_e.html?qc67"
raw_html = requests.get(URL).text
data = BeautifulSoup(raw_html, 'html.parser')
j=dict()

Keybase proof

I hereby claim:

  • I am davidbb on github.
  • I am davidbb (https://keybase.io/davidbb) on keybase.
  • I have a public key whose fingerprint is 0285 A2C4 8F70 8F50 F74E 7F15 D75D 4E8E 7357 393E

To claim this, I am signing this object:

@davidbb
davidbb / post-commit.sh
Created May 10, 2012 16:04 — forked from cpu/post-commit.sh
SVN Post-commit hook for Pushover messages.
#!/bin/bash
#
# SVN Post-commit hook for the Pushover API
# Filters commits to only push when specific authors commit.
# Sends commit messages to one or more device KEYS.
# List of keys to push to
KEYS=( DEVICE_KEY_ONE DEVICE_KEY_TWO DEVICE_KEY_THREE )
# Which commit authors should generate push messages?