Skip to content

Instantly share code, notes, and snippets.

View willwillis's full-sized avatar

Will Willis willwillis

View GitHub Profile
@willwillis
willwillis / descriptions.json
Created September 10, 2024 16:42 — forked from stellasphere/descriptions.json
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/[email protected]"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/[email protected]"
}
@willwillis
willwillis / linking
Created August 27, 2025 02:47
Rust static linking; max portability
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
@willwillis
willwillis / bandcamp_alias.sh
Created November 7, 2025 05:03
url to bandcamp download
bandcamp_download() {
local url="$1"
# Extract subdomain (everything before .bandcamp.com)
local subdomain=$(echo "$url" | sed -n 's|^https\?://\([^.]*\)\.bandcamp\.com.*|\1|p')
if [ -z "$subdomain" ]; then
echo "Error: Could not extract subdomain from URL" >&2
return 1
fi