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

[Service]
Type=simple
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

[Install]
WantedBy=default.target


-fg and Type=simple are important!

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

Saturday, September 28, 2019

Friday, May 24, 2019

vim: disable you-complete-me for a given file

let g:ycm_auto_trigger=0 let g:enable_ycm_at_startup = 0 let b:ycm_largefile=1

Sunday, March 17, 2019

Sourcing bash completion in .bashrc

Add the following into your .bashrc:
source /etc/profile.d/bash_completion.sh