User Tools

Site Tools


This is my technical blog where I post about various stuffs. Take a look at my resume if you want to know more about me.

Bash and Linux tips

I put some tips and stuffs about bash and linux here.

Find all extensions in $folder :

find $folder -type f -name "*.*" | awk -F. '!a[$NF]++{print $NF}'

Autosuspend script for server :

Batch subtitle download :

To have fr and en subtitles :

for f in *.avi; do subdl --lang=fre "$f" ; done
for f in *.avi; do subdl --lang=eng,fre "$f" ; done

Pictures and videos encode script :

Keyboard layout in gdm

Edit Option “XkbLayout” in /etc/X11/xorg.conf.d/10-evdev.conf :

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"

        Option "XkbLayout" "fr"


start.txt · Last modified: 2017/05/08 00:43 by popux