Skip to content

Instantly share code, notes, and snippets.

View NonLogicalDev's full-sized avatar

Oleg Utkin NonLogicalDev

View GitHub Profile
@NonLogicalDev
NonLogicalDev / !MakeGitGreatAgain.md
Last active October 12, 2016 23:39
Make Git Great Again

Here is my Git Setup that makes working with git a lot more efficient and less annoying.

Share Short Link

#!/usr/bin/env ruby
require 'mustache'
require 'diffy'
require 'colorize'
require 'pry'
require 'optparse'
STUDENT_NAME = "Oleg Utkin"
STUDENT_LOGIN = "cs11whw"
@NonLogicalDev
NonLogicalDev / VimSuperAutoAwesome
Last active August 29, 2015 14:24
VimSuperAutoAwesome
#!/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
" Author: Oleg Utkin
" Github: nonlogicaldev
" Close/open all folds zm/zr
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" Initialising Plugins:
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugin Definitions: {{{
call plug#begin('~/.vim/plugged')
"===============================================================================
#!/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")
# 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
'>'
)
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
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
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] = []
@NonLogicalDev
NonLogicalDev / prefs.js
Last active December 20, 2015 09:59 — forked from johnbender/prefs.js
// 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',