ffmpeg -i ./input_file.mkv -c:v copy -c:a libfdk_aac -vbr 3 output.mkv
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Wednesday, November 13, 2019
ffmpeg: convert audio to acc but copy video
Monday, October 14, 2019
Saturday, October 05, 2019
vnc using systemd in user mode
File: /home/mwo2/.config/systemd/user/myvnc@:1.service
-fg and Type=simple are important!
systemctl --user enable 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
Labels:
vim
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
Tmux: Control nested/remote session with C-a, instead of C-b
bind-key -n C-a send-prefix
The local session still will be C-b.
Tuesday, February 12, 2019
firefox: disable webrtc
- Go to about:config
- Set peerconnection.enabled to false
- Check on https://ipleak.net/
Labels:
firefox
Subscribe to:
Posts (Atom)