Skip to content

Instantly share code, notes, and snippets.

View the-redback's full-sized avatar
:octocat:

Abdullah Al Maruf the-redback

:octocat:
View GitHub Profile

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by

git diff off a file

git difftool 0.10.0 glide.lock

git diff full directory

git difftool --dir-diff 0.10.0
@the-redback
the-redback / delete_git_submodule.md
Created February 27, 2019 16:16 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
{
"shell_cmd": "g++ -Dredback -std=c++11 '${file}' -o '${file_path}/${file_base_name}.o' && time '${file_path}/${file_base_name}.o'",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c++, source.cpp, source.cc, source.cxx",
"variants":
[
{
"name": "Run in Terminal",
"*****************************************************************************
"" Plug install packages
"*****************************************************************************
Plug 'iamcco/markdown-preview.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'w0rp/ale'
"" Color
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'morhetz/gruvbox'
let no_buffers_menu=1
if !exists('g:not_finish_vimplug')
colorscheme dracula
colorscheme gruvbox
endif
"" https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim
set pastetoggle=<F3>
" vim-bootstrap b0a75e4
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
/***
* ____
* ____ ___ ____ ________ __/ __/
* / __ `__ \/ __ `/ ___/ / / / /_
* / / / / / / /_/ / / / /_/ / __/
* /_/ /_/ /_/\__,_/_/ \__,_/_/
*
* @link : https://maruftuhin.com
*/
<snippet>
<content><![CDATA[
/***
* ____
* ____ ___ ____ ________ __/ __/
* / __ `__ \/ __ `/ ___/ / / / /_
* / / / / / / /_/ / / / /_/ / __/
* /_/ /_/ /_/\__,_/_/ \__,_/_/
*
* @link : https://maruftuhin.com
{
"cmd":[
"g++",
"-std=c++14",
"$file",
"-o",
"${file_path}/${file_base_name}"
],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir":"${file_path}",