Skip to content

Instantly share code, notes, and snippets.

@engvik
engvik / bash-snippets.sh
Last active September 8, 2022 17:24
A collection of bash snippets
# Next trash collection day in Oslo
curl -X GET "https://www.oslo.kommune.no/xmlhttprequest.php?service=ren.search&number=address+number&letter=address+letter&street_id=street+id" | jq '.data .result[0] .HentePunkts[0] .Tjenester[] | { type: .Fraksjon .Tekst, date: .TommeDato, day: .TommeUkedag }'
# Next mail days in Oslo
curl -H "x-requested-with: XMLHttpRequest" -X GET "https://www.posten.no/levering-av-post/_/component/main/1/leftRegion/1?postCode=your-zip-code" | jq .nextDeliveryDays
# Find new entries on IMDB Top 250 by comparing with a local list of movies
comm -23 <(curl -H "Accept-Language: en-US" https://www.imdb.com/chart/top | htmlq --text .titleColumn a | sort) <(sort movies)
# Get crowdfunding status of bidra.no's Norwegian album classics on LP