Skip to content

Instantly share code, notes, and snippets.

@persep
persep / ssh_config.md
Created April 3, 2018 11:04 — forked from jiggneshhgohel/ssh_config.md
Windows 10 Linux Subsystem SSH-agent issues
Host github.com-jiggneshhgohel
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_work_gmail
AddKeysToAgent yes


Host csexperimental.abc.com
@persep
persep / gist:380f37a630991b30c6c2f324504ede5e
Created March 24, 2018 09:37 — forked from elucify/gist:c7ccfee9f13b42f11f81
BASH: set variables for ANSI text color escape sequences
RESTORE=$(echo -en '\033[0m')
RED=$(echo -en '\033[00;31m')
GREEN=$(echo -en '\033[00;32m')
YELLOW=$(echo -en '\033[00;33m')
BLUE=$(echo -en '\033[00;34m')
MAGENTA=$(echo -en '\033[00;35m')
PURPLE=$(echo -en '\033[00;35m')
CYAN=$(echo -en '\033[00;36m')
LIGHTGRAY=$(echo -en '\033[00;37m')
LRED=$(echo -en '\033[01;31m')

The 11 Steps to Learning Vim

"I used to like coding. It’s fun to see numbers and letters turn into something so much more. But now, thanks to Vim, I love coding. Have you ever dreamt you could fly? There’s nothing like it, but you can have a taste of it when you code with Vim."

Step 1

Terminal 0: xterm-256color [references=1, flags=0x1]:
0: AX: (flag) true
1: acsc: (string) ``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
2: bce: (flag) true
3: bel: (string) \007
4: blink: (string) \033[5m
5: bold: (string) \033[1m
6: civis: (string) \033[?25l
7: clear: (string) \033[H\033[2J
8: cnorm: (string) \033[?12l\033[?25h
@persep
persep / .vimrc
Created March 15, 2018 11:42
.vimrc
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins.
Plug 'vim-airline/vim-airline'
Plug 'morhetz/gruvbox'
Plug 'lifepillar/vim-solarized8'
Plug 'vim-airline/vim-airline-themes'
Plug 'altercation/vim-colors-solarized'
@persep
persep / tmux_build_from_source_CentOS.sh
Created March 14, 2018 14:27 — forked from P7h/tmux__CentOS__build_from_source.sh
tmux 2.0 and tmux 2.3 installation steps for Ubuntu. Or build from tmux source v2.5 for Ubuntu and CentOS.
# Steps to build and install tmux from source.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo yum -y remove tmux
sudo yum -y install wget tar libevent-devel ncurses-devel
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xzf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
@persep
persep / tmux-cheatsheet.markdown
Created March 14, 2018 10:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@persep
persep / 0-startup-overview.md
Created March 2, 2018 15:09 — forked from dideler/0-startup-overview.md
Startup Engineering notes
@persep
persep / reclaimWindows10.ps1
Created January 7, 2017 21:06 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@persep
persep / TileLayer.Common.js
Created June 27, 2016 07:47 — forked from mourner/TileLayer.Common.js
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {