Skip to content

Instantly share code, notes, and snippets.

@rothmichaels
Last active November 9, 2016 22:04
Show Gist options
  • Select an option

  • Save rothmichaels/ca1afa1f83ab85d56b8a2d03faef10ec to your computer and use it in GitHub Desktop.

Select an option

Save rothmichaels/ca1afa1f83ab85d56b8a2d03faef10ec to your computer and use it in GitHub Desktop.
Removes SQLite VACUUM command references from Spotify
#!/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