Skip to content

Instantly share code, notes, and snippets.

View c99koder's full-sized avatar

Sam Steele c99koder

View GitHub Profile
@Timmmm
Timmmm / lastfm_to_gmusic.py
Last active June 1, 2018 12:43
Convert Last.fm loved tracks to your Google Play Store Music Play All Access Subscription Service by Google™. It creates a new playlist rather than adding the tracks to your library willy-nilly. See code for more details.
#!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, [email protected], based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th of September 2013.
#
@jonocole
jonocole / Spotify Silencer.applescript
Created March 27, 2012 15:44
Silence spotify ads
-- This isn't pretty but it works.
tell application "Spotify"
set old_volume to sound volume
repeat
if player state is playing then set current_album to album of current track
if player state is playing and (current_album starts with "http://" or current_album starts with "https://" or current_album starts with "spotify:") then
set sound volume to 0
play
else