Skip to content

Instantly share code, notes, and snippets.

@benfry
benfry / usb_detect.py
Last active November 21, 2024 11:58
Detect USB speeds and report via browser
#!/usr/bin/env python3
import json
import sys
''' Quick hack to detect the speed of plugged-in USB devices on macOS,
then write a simple HTML page with the info and open it in a browser.
Calls out to the command line system_profiler tool to retrieve the information.
@benfry
benfry / install-rsync-macosx.sh
Last active June 27, 2025 10:45
How to compile and install rsync on macOS
# Compile rsync 3.2.3
# Originally from https://gist.github.com/Sounds-of-Science
# with updates for 3.2.3 instead of 3.0.7, and other path changes
Follow these instructions in Terminal on both the client and server to download and compile rsync on macOS
# Download and unarchive rsync and its patches
cd ~/Desktop
curl -O https://rsync.samba.org/ftp/rsync/src/rsync-3.2.3.tar.gz

Moved to