Skip to content

Instantly share code, notes, and snippets.

View 641i130's full-sized avatar
🦀
Rewrite it in rust!

Caret 641i130

🦀
Rewrite it in rust!
View GitHub Profile
@641i130
641i130 / ctabus.sh
Last active January 11, 2023 17:38
CTA Bus Tracker Cli
#!/bin/bash
# chmod the script and run like this ./ctabus.sh [bus code]
# This gets the times from the raw HTML code sent from the server
# Special thanks to chatgpt for fixing the grep statements!
curl -s "https://ctabustracker.com/bustime/wireless/html/eta.jsp?route=NULL&direction=NULL&id=$1&showAllBusses=on" | grep -oP '<strong.*>(.*?)</strong>' | grep -vE '<strong.*>#[0-9]{1,3}&nbsp;</strong>' | sed -E 's/.*>([0-9]+).*/\1/;t;s/.*>DUE.*/DUE/'
@641i130
641i130 / README.md
Last active January 3, 2023 05:34 — forked from ioquatix/README.md
How to setup v4l2 loopback for use with OBS.