How to convert MP4 to MKV with ffmpeg (Easy steps!)

If you wondering how to convert a video only from command line. These steps are recommended to achieve that. First you need to install ffmpeg in your system. Centos/Fedora: $ sudo dnf install ffmpeg Ubuntu: $ sudo apt install ffmpeg And proceed to convert your desired video: $ ffmpeg -i input.mp4 -vcodec copy -acodec copy … Read more

Vagrantfile example

Just an example of Vagrantfile in case I need it. you can also use it. $ mkdir vagrant ~/vagrant:~$ touch Vagrantfile ~/vagrant:~$ vagrant up Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(“2”) do |config| = “ubuntu/xenial64” “private_network”, ip: “” config.vm.provider “virtualbox” do |vb| vb.memory = “2048” end config.vm.provision :shell, … Read more

Vim cheatsheet

:%s/foo/bar/g # replace string v # open new file to vplit window from netrw gf # go to file (current window) from netrw y # yank/copy lines p # paste from yanked/clipboard gg # go to top GG # go to bottom % # match bracket Ctrl-e # open Vexplorer left side after new tab :1316 # go to line number

My vim standard config

highlight Cursor guifg=white guibg=black highlight iCursor guifg=white guibg=steelblue set guicursor=n-v-c:block-Cursor set guicursor+=i:ver100-iCursor set guicursor+=n-v-c:blinkon0 set guicursor+=i:blinkwait10 set mouse=a autocmd TextChanged,TextChangedI <buffer> silent write set clipboard=unnamedplus set paste set nu set tabstop=4 noremap <S-s> :w <Enter> let g:netrw_banner = 0 let g:netrw_liststyle = 3 let g:netrw_browse_split = 4 let g:netrw_altv = 1 let g:netrw_winsize = 25 … Read more