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

Wednesday, February 27, 2019

Tuesday, February 12, 2019

firefox: disable webrtc

  1. Go to about:config
  2. Set peerconnection.enabled to false
  3. Check on https://ipleak.net/

firefox socks5 through ssh proxy

ssh -ND 1080 user@proxyserver