User:Atomdraco/HS-PCUTILITY

= Utility Tools Setup =

VIM

 * Run echo $HOME in VIM to see where is it. To set HOME path correctly, go to Window's Environment Variables. Add a new variable under the user:
 * Variable name:HOME
 * Variable value: C:\Users\


 * Place your _vimrc & _gvimrc under the $HOME directory
 * VIM color scheme links:
 * + 8 favorite schemes (Some schemes required to install autoload/xxx.vim first, such as palenight.vim)
 * + Newest Vim Color Schemes
 * abyss/ayu/azuki/blackboard/blue-mood/bluish/celtics-away/challenger_deep
 * cobalt2/distilled/forcusedpanic/garbage-oracle/gruvbox/isotake/knicks-away
 * nefertiti/oceanicnext/palenight/panic/red_alert/skeletor/srcery/strawberry/sv


 * Some good vimrc examples:
 * + A Good vimrc
 * + The cleanest vimrc you’ll ever see
 * + A clean vimrc
 * + My .gvimrc example

" Reference: " ======================================================== " 	1. https://dougblack.io/words/a-good-vimrc.html " 	2. https://github.com/skwp/dotfiles/blob/master/vimrc " ======================================================== " Use Vim settings, rather then Vi settings (much better!). " This must be first, because it changes other options as a side effect. set nocompatible " ================ Color scheme ====================== syntax on colorscheme palenight " ================ General Config ==================== set lines=55 columns=100	" Window size set number set backspace=indent,eol,start	"Allow backspace in insert mode set history=1000 set showcmd "set gcr=a:blinkon0	"Disable cursor blink set cursorline set lazyredraw set showmatch " ================ Indentation ====================== set autoindent set smartindent set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab		" tabs are spaces " Display tabs and trailing spaces visually "set list listchars=tab:\ \ ,trail:ยท " ================ Search =========================== set incsearch      " Find the next match as we type the search set hlsearch        " Highlight searches by default set ignorecase     " Ignore case when searching... set smartcase       " ...unless we type a capital nnoremap  :nohlsearch	" turn off search hilighting with  " ================ Folds ============================ set foldenable set foldlevelstart=10 set foldnestmax=10 nnoremap za set foldmethod=indent  " fold based on indent level " =============== Movement ========================== " move vertically by visual line nnoremap j gj nnoremap k gk " highlight last inserted text nnoremap gV `[v`] " ================ Turn Off Swap Files ============== set noswapfile set nobackup set nowb " ================ Persistent Undo ================== " Keep undo history across sessions, by storing in file. " Only works all the time. if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups') silent !mkdir ~/.vim/backups > /dev/null 2>&1 set undodir=~/.vim/backups set undofile endif " ================ Scrolling ======================== set scrolloff=8        "Start scrolling when we're 8 lines away from margins set sidescrolloff=15 set sidescroll=1 " ================ Custom Settings ======================== "so ~/.yadr/vim/settings.vim "put an alias file here

Git

 * Create .bashrc and place it in ~ (HOME) directory
 * Some links for customization:
 * + Customize Git shell prompt
 * + Styling Git Bash with Hyper term
 * + Git prompt - bash
 * + [https://medium.com/@tzhenghao/a-guide-to-building-a-great-bashrc-23c52e466b1c A guide to building a great .bashrc

(Some git alias)]
 * git-config
 * 13 Git Aliases
 * Git Wiki - Aliases

Beyond Compare

 * To setup BC working with Git on Window, edit C:\Users\ \.gitconfig
 * - using BC version 4.2.x
 * - git version 2.20.x

[diff] tool = bc3 [difftool] prompt = false [difftool "bc3"] trustExitCode = true cmd = "'/C/Program Files/Beyond Compare 4/bcomp'" \"$LOCAL\" \"$REMOTE\" [merge] tool = bc3 [mergetool] prompt = false [mergetool "bc3"] trustExitCode = true cmd = "'/C/Program Files/Beyond Compare 4/bcomp'" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"

git difftool    #diff file git difftool --dir-diff    #diff folder git mergetool   #3-2ay merge
 * To open the mergetool & difftool


 * More about how to setup: Using Beyond Compare with Version Control Systems

Virtual Desktop

 * If you have Windows 10, the virtual desktop is building, called Task View. Here are some shortcuts (Resource from CNET)
 * + Window + Tab - bring up the Task View (or click on the Task View'' button with overlapping rectangles on Taskbar)
 * + Window + Ctrl + D - add a new virtual desktop
 * + Window + Ctrl + Left/Right Arrow - switch between desktops
 * + Window + Ctrl + F4 - close the desktop currently on

PowerShell

 * Window 10 has PowerShell is xterm-like command line utility, to access:
 * - Using Shortcut : Press keys Windows + X to open the advanced menu (WinX menu or power user's Start Menu), choose PowerShell
 * - Open it in Start Menu : Get into the Start Menu, open All apps, click the Windows PowerShell folder and tap Windows PowerShell.
 * - Open it through Command Prompt : Launch Command Prompt, type powershell and press Enter.


 * More info about PowerShell:
 * + Go pro: The power user's guide to PowerShell
 * + Replace Command Prompt with PowerShell and Vice Versa in Windows 10
 * + Windows PowerShell Scripting Tutorial For Beginners
 * + Customize Your PowerShell Environment
 * + Tiny tweaks for PowerShell perfection

Notepad++

 * Some Notepad++ color schemes
 * 1) Right Click HERE and select Save As to download a theme.
 * 2) Go to %APPDATA%\Notepad++.
 * 3) Open the themes folder, create a new folder named themes if it doesn't exists.
 * 4) Place the downloaded . ...
 * 5) Restart Notepad++.
 * 6) Open Settings->Style Configurator.
 * 7) Select Material Theme from the theme drop-down box.
 * ViSimulator plugin. Add the visimulator.dll to Notepad++/plugins folder. Restart Notepad++
 * INFOS on the "ViSimulator" N++ plugin

Coverity

 * Coverity Tutorials (video) by Synopsys
 * Setting up a Notification in Coverity (video)

Jenkins

 * Jenkins User Documentation (official)
 * Continuous integration with Jenkins - Tutorial
 * Jenkins Tutorial: www.tutorial <--> spoint.com/jenkins/index.htm (copy/paste/remove <--> to access the websit)
 * Jenkins Tutorial for Beginners
 * Jenkins Pipeline file with Apache Groovy
 * Understanding and implementing Pipeline as Code
 * Jenkins Pipeline Tutorial (*)
 * Introduction to writing pipelines-as-code and implementing DevOps with Jenkins 2
 * Pipeline: Groovy


 * Send email on jenkins pipeline failure
 * Email Extension Plugin (*)

MISC

 * Vi Cheat Sheets: #1 / #2
 * Window 10 keyboard shortcuts

Wiki

 * CSS color name
 * Links -- Tables Formatting -- Line-break handling -- Section -- Compact TOC -- Collapsible elements Manual