Skip to content

Instantly share code, notes, and snippets.

@omniwired
Created November 10, 2016 04:07
Show Gist options
  • Save omniwired/cd8e6799d07ff9549fb64f2e3465bbca to your computer and use it in GitHub Desktop.
Save omniwired/cd8e6799d07ff9549fb64f2e3465bbca to your computer and use it in GitHub Desktop.
fix_spotify_sdd.py
#!/usr/bin/python
target = "/Applications/Spotify.app/Contents/MacOS/Spotify"
with open(target) as infile:
bytes = infile.read()
with open("./Spotify", "wb") as backup:
backup.write(bytes)
fixed = bytes.replace("VACUUM;", "xxxxxx;")
with open (target, "wb") as outfile:
outfile.write(fixed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment