Skip to content

Instantly share code, notes, and snippets.

View avrahamappel's full-sized avatar

Avraham Appel avrahamappel

View GitHub Profile
@avrahamappel
avrahamappel / bus-script.py
Last active November 26, 2025 22:45
Get notified when your TSTG bus is almost at your stop
#!/usr/bin/env python3
import json
import math
import os
import requests
from bs4 import BeautifulSoup
# Function to calculate the distance between two latitude/longitude points
@avrahamappel
avrahamappel / download-masechta.sh
Last active April 15, 2026 03:39
Download a full masechta from realcleardaf.com
#!/usr/bin/env nix-shell
#!nix-shell -p curl fd pdftk
MASECHTA=${MASECHTA:-berachos}
DAFIM=${DAFIM:-200}
mkdir -p "$MASECHTA"
for daf in $(seq 2 "$DAFIM"); do
for amud in {a..b}; do
mapkey('P', '#1Paste from clipboard', function() {
// Grab the latest clipboard entry
const clipboardText = Clipboard.get();
// Get all input elements on the page
const inputs = $$('input, textarea');
// Check how many inputs there are
if (inputs.length === 0) {
alert("No input fields found.");
#!/usr/bin/env bash
set -euo pipefail
# --------------------------------------------------------------------
# Configuration
# --------------------------------------------------------------------
# Directory where temporary files will be stored
WORKDIR="${HOME}/garmin_map_update"
mkdir -p "${WORKDIR}"