Monday, September 17, 2018

MATLAB: vision.ShapeInserter crashes in Arch Linux

Seems its same problem as here:

Solution was to remove libfreetype files from /opt/MATLAB/R2016a/bin/glnxa64

sudo mv libfreetype* exclude/

Sunday, September 16, 2018

Arch xfonts 75 and 100

sudo pacman -S xorg-fonts-75dpi xorg-fonts-100dpi

Thursday, August 30, 2018

rsync: make a backup

rsync -avh -R --info=progress2 --delete /home/source/folder /run/media/backup/folder

Wednesday, August 29, 2018

rsync: copy files over ssh with non-default port

rsync -azvh -e 'ssh -p 22222' ./source_folder user@destination_ip:/destination/folder/name

Thursday, August 23, 2018

Setting default terminal in Nemo

gsettings set org.cinnamon.desktop.default-applications.terminal exec terminal

Thursday, July 12, 2018

ffmpeg: Extract audio to mp3 from multiple mp4 video files

for i in *.mp4; do ffmpeg -i "$i" -q:a 0 -map a "$(basename "$i" .mp4)".mp3 ; done

Sunday, July 08, 2018

Linux: Download audo only from twitch (including live stream)

Show available video formats:
youtube-dl --list-formats twitch_url_to_video
Download only audio:
youtube-dl -f audio_only twitch_url_to_video

Wednesday, July 04, 2018

Thursday, June 07, 2018

Cmake: compile using clang instead of gcc

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
cmake ..