Skip to content

Instantly share code, notes, and snippets.

View var-bin's full-sized avatar
🤙
Preprocessors do not output bad code. Bad developers do.

Vitalii Rybka var-bin

🤙
Preprocessors do not output bad code. Bad developers do.
View GitHub Profile
@var-bin
var-bin / fast_diff.sh
Last active March 9, 2017 19:28
Create diff for current branch and put it in the file. Repository https://github.com/var-bin/terminalForCoder__WSD
#!/bin/bash
# create diff for current branch and puts it in the file
# ./fast_diff.sh <branch> - how this script should called
PATH_TO_DIFF_DIR="${HOME}/diff/"
FILE_PREFIX="diff-"
FILE_EXTENTION=".diff"
branch="$1"
@var-bin
var-bin / arguments.sh
Last active March 9, 2017 19:28
How to process arguments in a bash script. Repository https://github.com/var-bin/terminalForCoder__WSD
"$1" # first argument
"$2" # second argument
"$0" # script name
"$#" # number of scripts
"$@" # each parameter is shown as a new line
# (word), ie parameters don’t undergo any kind of
# interpretation
@var-bin
var-bin / settings.json
Last active August 22, 2019 18:59
VS Code User Settings
// Place your settings in this file to overwrite the default settings
{
// editor section
"editor.fontSize": 18,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": false,
"editor.renderIndentGuides": true,
"editor.multiCursorModifier": "ctrlCmd",
tmux attach - reattached to the previous session
Ctrl + b, ← → ↑ ↓ - switching the panes
Ctrl + b, % - split the current pane into two vertical panes
Ctrl + b, int - open the needed tab where int will tell the number of tab (0-9)
Ctrl + b, w - interactive toggle of tabs
Ctrl + b, , - rename a tab
Ctrl + b, c - create a new tab