Heartbleed and the after-effects

עברית: לוגו של התוסף HTTPS Everywhere לפיירפוקס

Heartbleed certainly shook up a lot of companies, and whilst a lot of companies did their best to get system updated, doing so has caused users side effects, including me.

I use an extension for Chrome/Chromium called HTTPS Everywhere and this forces HTTPS connections to the site you’re visiting. However, since the patching of Heartbleed, some sites have started misbehaving and only work “properly” if I use either the Incognito mode (which means no extensions), or if I deactivate HTTPS Everywhere for the site in question. The side effect of this, unfortunately, means my net traffic to the site in question is exposed via non-secure HTTP. Fortunately, I have encountered only two sites so far which have this problem, neither of them I am too concerned (at the moment) about:

If I encounter any more, I’ll post it here.

Android: Building Playlists

If you are like me and regularly copy music files to your device, you’ll know that some applications only work with playlists, especially fitness apps like Zombies, Run! and miCoach. But these apps use the media storage playlists, so you need to create the playlists in a certain way. I’ve generate a script below. It searches for any files ending in flac or mp3 (common audio formats), and then generates them into an m3u playlist. It prefixes the output with /sdcard/Music (which is commonly where music files go), but this can be changed.

Copy your music to /sdcard/Music/

Copy the script to the same folder.

Change directory into the folder.

Run this script using the line:

playlistmaker.sh .

And you will get a file ALL.m3u

if [ -f "$1.m3u" ]; then
echo Removing $1.m3u
rm "$1.m3u"
if [[ "$1" = "." ]]; then
echo Building "$OUTPLS"
find "$1" | grep -E ".flac$|.mp3$" | sort | sed -r "s/^(.\/)/\/sdcard\/Music\//" >"$OUTPLS"
wc -l "$OUTPLS" | awk '{print $1}'
if [[ $SONGS -eq 0 ]]; then
echo “$OUTPLS: ($SONGS songs), not keeping playlist”
rm “$OUTPLS”
echo “$OUTPLS: ($SONGS songs)”

This script can also be tied together with a tree walker like so:

find -maxdepth 1 -type d -exec ./findMusicFiles.sh {} \;

The script at the start of this post will generate one playlist – ALL.m3u containing all the media in the current directory and below.

Using the second line of code will walk the directories in the current folder and generate one playlist per directory.

%d bloggers like this: