Skip to content

Instantly share code, notes, and snippets.

smpanaro /
Created August 24, 2019 16:51
Spotify ChromeCast BitBar Plugin

Switch Spotify's audio output to a ChromeCast from your menu bar.

  1. Clone my fork of pychromecast.
    1. cd to the pychromecast directory and create a virtualenv: python3 -m venv env
    2. Checkout the spotify-transfer-example branch: git checkout spotify-transfer-example
    3. Install dependencies: pip install -r requirements.txt
    4. Save to your pychromecast directory
    5. Update the paths and your spotify credentials in
  2. Install BitBar
    1. Move to your BitBar plugins folder
smpanaro /
Last active August 8, 2019 04:04
A script to save/favorite the album for every track that is saved/favorited in Spotify.

Spotify's recent changes caused some albums (those where you saved/favorited songs but not the album) to be removed from your Library's album list.

Those songs are still in your Library's song list however. This script looks at all of your saved songs, finds the corresponding album, and saves it to your Library's album list if it is not already there.


  • You'll need to create a new client ID on Spotify's developer site, including setting up a redirect URI.
  • Fill in the credentials in and run source
  • Install spotipy. pip install spotipy
  • Update username on line 7 of to your spotify username.

Keybase proof

I hereby claim:

  • I am smpanaro on github.
  • I am smpanaro ( on keybase.
  • I have a public key ASCrhd9sEFIQwzagME6DSCDmW6BJ-EnOMnulwlxu7mLJZgo

To claim this, I am signing this object:

smpanaro / MoMA My Path Bookmarklet
Last active August 29, 2015 14:05
A bookmarklet to download photos taken with the MoMA's audio guide.
View MoMA My Path Bookmarklet
# Install
This script is meant to be used as a bookmarklet. For best results use Chrome or Firefox (the only browsers to [support]( the HTML5 download attribute).
1. Go [here]( (or to any other bookmarklet generator) and paste the JavaScript below.
2. Check the Include jQuery box.
3. Click Convert to bookmarklet.
4. Drag into your bookmarks bar.
# Usage
Navigate to the URL emailed to you after your visit and click the bookmarklet.
A series of images should appear at the top of your page. Click them to download them.