Skip to content

Instantly share code, notes, and snippets.

@DavidePrincipi
DavidePrincipi / castanet.sh
Last active November 8, 2026 09:12 — forked from interfect/castanet.sh
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env bash
# castanet.sh: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal Linux computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
@muhdiboy
muhdiboy / lastfm-automated-remove-duplicates.md
Last active September 24, 2026 20:23
LastFM automated duplicate scrobble deletion script

Why would I need this?

Your scrobbler might have decided to scrobble every song hundreds of times, and you can't really remove those scrobbles efficiently. Or you might have accidentally installed multiple scrobbler extensions at the same time - wondering why multiple scrobbles appear for every song played at a time - and you want to clear them after finding the issue.

Using this script still doesn't necessarily make the process quick, since Last.fm only displays a limited number of scrobbles that can be removed on each page of your library, and also rate-limits how many pages you can load in quick succession. The difference from the implementation of @sk22 and its forks - which this UserScript is derived from - is that you don't run it manually on every page. You set your options once, click START, and the rest of the process is automated: the script works its way back through your library and stops automatically at the page you choose.

Installation

Prerequisites