Saturday, September 28, 2019

mkvpropedit: change default audio track

mkvpropedit --edit track:a1 --set flag-default=1 file.mkv

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

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

  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

Saturday, December 15, 2018

vim: copy to clibpard

Add this to ~.vimrc, for ctrl+c shortuct vnoremap :w !xclip -i -sel c

Thursday, November 22, 2018

Bash: reset bash conosole

tput reset

PulseAudio: Stream sound from home to work computer over ssh and vnc

1. At work use papref to "Enable network access to local sound devices"and restart computer.

2. Copy pulse cookie from work to home: ~/.config/pulse/cookie so that work and home computer share same secret (cookie).

3. At work start: sudo start-pulseaudio-x11

4. At work open reverse tunnel for pulseadio: ssh -X -R 9998:localhost:4713 home

5. At work use vnc to connect to home.

6. Once connected using vnc to home, start firefox (for example) at home computer using: PULSE_SERVER=localhost:9998 firefox

The instructions are based on this: http://psung.blogspot.com/2011/09/network-audio-with-pulseaudio-made.html

Thursday, October 25, 2018

Atom: Change command-palette:toggle keybinding

'atom-text-editor:not([mini])':
'ctrl-shift-:': 'command-palette:toggle'