Monday, May 31, 2021

Friday, March 26, 2021

Saturday, December 19, 2020

Jyputer: Don't ask for password nor token

alias jn='jupyter notebook --no-browser --ContentsManager.allow_hidden=True --NotebookApp.password="" --NotebookApp.token=""'

Tuesday, December 15, 2020

rsync: make backup to remote server

rsync -avzhe ssh --progress ./folder_to_backup/ user@server-ip:./folder_on_server

Sunday, November 29, 2020

Vino: Disable remote access confirmation

gsettings set org.gnome.Vino notify-on-connect false gsettings set org.gnome.Vino prompt-enabled false

Monday, January 06, 2020

mkvpropedit: mkv disable subtitles

mkvpropedit movie.mkv --edit track:s1 --set flag-default=0

Wednesday, November 13, 2019

ffmpeg: convert audio to acc but copy video

ffmpeg -i ./input_file.mkv -c:v copy -c:a libfdk_aac -vbr 3 output.mkv

Monday, October 14, 2019

Tmux: nested sessions C-a binding

Add this to your local `~/.tmux.conf`

bind-key -n C-a send-prefix

Saturday, October 05, 2019

vnc using systemd in user mode

File: /home/mwo2/.config/systemd/user/myvnc@:1.service [Unit]
Description=My VNC

ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver -geometry 1920x1080 :%i -xstartup /home/mwo2/.vnc/xstartup -SecurityTypes None -fg
ExecStop=/usr/bin/vncserver -kill :i


-fg and Type=simple are important!

systemctl --user enable myvnc@\:1.service

Saturday, September 28, 2019