Here is my Git Setup that makes working with git a lot more efficient and less annoying.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'mustache' | |
| require 'diffy' | |
| require 'colorize' | |
| require 'pry' | |
| require 'optparse' | |
| STUDENT_NAME = "Oleg Utkin" | |
| STUDENT_LOGIN = "cs11whw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################--++ | |
| # INSTALL: curl -L https://goo.gl/L7y6vD | bash | |
| ################################################--++ | |
| ################################################ | |
| # IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORT | |
| # ---------------------------------------------- | |
| # This script will nuke your vim directory, but | |
| # It will have it backed up to .vim.bak |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Author: Oleg Utkin | |
| " Github: nonlogicaldev | |
| " Close/open all folds zm/zr | |
| "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| " Initialising Plugins: | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Plugin Definitions: {{{ | |
| call plug#begin('~/.vim/plugged') | |
| "=============================================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################### | |
| # INStALL: curl -L https://goo.gl/XzaObE | bash | |
| ############################################### | |
| ZSHELL_LOC=/bin/zsh | |
| main() { | |
| Log0 "Installing Packages" | |
| MAIN_PACKAGES=("git" "zsh" "vim" "exuberant-ctags") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prompt Settings ============================================================= | |
| T_LEFT=(' ' | |
| '$(sp)' | |
| '$(add [ ls_dirs ])' # Directory list | |
| '$(add $(sp) vcs_status)' # Status of version controll | |
| # '$(add $(sp) rvm_ver)' # Active version of ruby | |
| # '$(add $(sp) nvm_ver)' # Active version of node | |
| '>' | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| failed=0 | |
| if [[ -z `command -v node` ]]; then | |
| printf `tput setaf 1` 1>&2 | |
| echo "ERROR: You need to install NodeJS" 1>&2 | |
| printf `tput sgr0` 1>&2 | |
| echo "You can get instructions here" 1>&2 | |
| printf `tput setaf 2` 1>&2 | |
| echo " http://nodejs.org" 1>&2 | |
| printf `tput sgr0` 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dag = log --graph --date=local --format='format:%C(yellow)%h%C(reset) %C(blue)%cn <%ce>%C(reset) %C(magenta)%cd%C(reset)%C(auto)%d%C(reset)%n%s' --date-order |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class EventLoop | |
| class AlreadyRunning < StandardError; end | |
| class CantTerminate < StandardError; end | |
| def start | |
| raise AlreadyRunning, "Event loop is already running" if @event_loop | |
| @event_loop = Thread.new do | |
| Thread.current[:events] = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use this for nOtch2k | |
| term_.prefs_.set('background-color', "#202020"); | |
| term_.prefs_.set('foreground-color', "#a0a0a0"); | |
| term_.prefs_.set('color-palette-overrides', [ | |
| '#383838', | |
| '#a95551', | |
| '#606060', | |
| '#a98051', | |
| '#657d3e', |