Skip to content

Instantly share code, notes, and snippets.

View jamesvrt's full-sized avatar

James Townend jamesvrt

View GitHub Profile
@jamesvrt
jamesvrt / points-in-polys.py
Last active December 16, 2022 00:40
Find points within polygons, plot something about the points' attributes
# %%
#### This code is only required to generate some dummy data
import numpy as np
import geopandas as gpd
from shapely.geometry import Point, Polygon
import matplotlib.pyplot as plt
# Make coords for corners of a square
square = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])
@jamesvrt
jamesvrt / zoom-minutes.sh
Created April 15, 2026 22:11
Auto-record Zoom calls with Minutes (Linux/PipeWire)
#!/usr/bin/env bash
# zoom-minutes — auto-start/stop Minutes recording when Zoom calls begin/end
#
# Detects Zoom calls by watching for "ZOOM VoiceEngine" audio streams in
# PipeWire/PulseAudio. When a call starts, runs `minutes record`. When the
# call ends, runs `minutes stop` to process the recording.
#
# Requirements:
# - minutes CLI (https://github.com/silverstein/minutes)
# - PipeWire or PulseAudio (pactl)