Skip to content

Instantly share code, notes, and snippets.

View borissov's full-sized avatar
👋

Radoslav Borisov borissov

👋
View GitHub Profile
@borissov
borissov / svn_to_git.sh
Last active February 15, 2019 09:50
Migrate form SVN to GIT and keep old and ignored files.
#!/bin/bash
# Most important part is to create proper .gitignore file.
git init
git remote add origin NEW_GIT_REPO
git fetch --all
git reset --hard origin/master
git status
rm -rf .svn
@borissov
borissov / VIM_url_handler.md
Last active October 21, 2020 14:29
URL protocol handler for gVim in Ubuntu 18.04 LTS (Bionic Beaver)

There was a way to register URL protocol handler for "vim:" in Ubuntu 18.04 LTS to call gVim.

You can create urls from type: "vim:local_file?line_number" for exapmple: "vim:~/.vimrc?5" will open .vimrc and focus on line 5.

First create file "/usr/share/applications/rvim.desktop".

Append in "/usr/share/applications/defaults.list":

x-scheme-handler/vim=rvim.desktop
@borissov
borissov / pregzip_assets_laravel5.md
Created August 6, 2018 15:29
Gzip assets in Laravel 5

First Install gzip Webpack plugin

npm i -D compression-webpack-plugin

In webpack.mix.js add plugin configuration:

const CompressionPlugin = require("compression-webpack-plugin")
@borissov
borissov / caps_hjkl.md
Last active July 29, 2025 18:06
Caps Lock + HJKL on Ubuntu 18.04 LTS (Bionic Beaver)

Remap systemwide Caps + HJKL to arrow keys for Ubuntu 18.04 LTS (Bionic Beaver).

For US Layout

In file /usr/share/X11/xkb/symbols/us append in xkb_symbols "basic" scope before the closing bracket:

    //hjkl
    key <AC06> {        [         h, H, Left            ]       };
    key <AC07> {        [         j, J, Down            ]       };
    key <AC08> {        [         k, K, Up              ]       };
    key <AC09> {        [         l, L, Right           ]       };
 key  { [ ISO_Level3_Shift ] };