LINUX: Solving slow GTK3 apps issue with kernels >=4.6

Several things which can be done:
- You can downgrade to 4.5, which works fine,
- You can downgrade to -lts kernels, which also works just fine.

But the "best" solution appears to just be using a composite manager (I used xcompmgr but I guess you can use whatever you
like), and everything will just work perfectly.

MKVMERGE: How to add subtitles to a mkv file #2

Regarding my previous post, here's a bash function to make it simpler:

function sub() {
    f=$1
    mkvmerge -o "${f%.*}_eng.${f##*.}" "$1" "$2" &&
    rm "$1" "$2"
}

"${f%.*}_eng.${f##*.}" is so that the file with the subtitles in it is renamed with _eng before the extension.

Then you just have to type 'sub $videofile $subfile', wait and you're done.

ARCH: How to know what you upgraded

I wrote a little bash function to do that (nothing complicated), here's the code

function whatdidiupgrade(){
    if [[ $1 == "today" ]];
    then
        grep $(date +%Y-%m-%d) /var/log/pacman.log | grep upgraded;
    elif [[ $1 == "yesterday" ]];
    then
        grep $(date --date="1 days ago" +%Y-%m-%d) /var/log/pacman.log | grep upgraded;
    else
        grep upgraded /var/log/pacman.log;
    fi
}

SPAMASSASSIN: Rule examples

mimeheader ZIP_ATTACHED Content-Type =~ /zip/i
describe ZIP_ATTACHED email contains a zip file attachment
score ZIP_ATTACHED 99

## URI rule
URI LOCAL_URI_BITLY /www\.bit.ly\//
score LOCAL_URI_BITLY 99
URI LOCAL_URI_BITLY2 /bit.ly\//
score LOCAL_URI_BITLY2 99

There are 2 rules for bit, for both http://bit.ly and http://www.bit.ly to be filtered.