Skip to content

Instantly share code, notes, and snippets.

View jlengrand's full-sized avatar
💭
Compiling

julien Lengrand-Lambert jlengrand

💭
Compiling
View GitHub Profile
@jlengrand
jlengrand / spotiProxy
Created April 22, 2018 17:45
Activating / Deactivating Spotify proxy settings
#!/bin/sh
ON_OFF=$1
SPOTIFY_PREFS="$HOME/Library/Application Support/Spotify/prefs"
PROXY_ON="network.proxy.mode=2" #HTTP Proxy
PROXY_OFF="network.proxy.mode=1" #No proxy
if [ ! -f "$SPOTIFY_PREFS" ]; then
echo "Spotify preference file not found. Exiting"
exit 1