Skip to content

Instantly share code, notes, and snippets.

@nikolovlazar
nikolovlazar / keybindings.json
Last active July 8, 2024 23:04
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@nikolovlazar
nikolovlazar / dotfiles-install.sh
Last active June 16, 2023 01:14
Dotfiles installation script
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
git clone --bare https://github.com/nikolovlazar/dotfiles.git $HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .config-backup
@nikolovlazar
nikolovlazar / .zshrc
Last active March 31, 2022 06:18
VSCode Settings
if [[ "${VSC}" == "yep" ]]
then
PS1='$ > '
fi
UPDATE wp_options SET option_value = replace(option_value, 'http://sezavino.mk', 'https://sezavino.mk') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://ivankarangelova.com','https://sezavino.mk');
UPDATE wp_posts SET post_content = replace(post_content, 'http://ivankarangelova.com', 'https://sezavino.mk');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://ivankarangelova.com','https://sezavino.mk');
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>