How to install Spotify on Loki 0.4.1?

Run terminal and type:

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository "deb http://repository.spotify.com stable non-free"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59 D2C19886
sudo apt-get update
sudo apt-get install spotify-client

In case of a problem please comment below. Official instruction can be found here (it was incomplete at the moment of writing).

PHP reading problem with files larger than 2 GB

If you’ll ever have problem with opening (fopen) and reading (fread) files larger than 2 GB in your PHP script. Check your version of scripting engine. In my case switching to 64 bit solved the problem. Please mind that this error is very hard to debug because PHP does not log anything (same as MS IIS) in such case. It simply resets client connection…