Skip to content

Instantly share code, notes, and snippets.

View pertrai1's full-sized avatar
🏠
Working from home

Rob Simpson pertrai1

🏠
Working from home
  • Waynesville, NC
View GitHub Profile
@pertrai1
pertrai1 / tmux.md
Created October 6, 2016 16:40 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

angular.module('psResponsive', [])
.value('psResponsiveConfig', {
sizes: [{
name: 'tiny',
minWidth: 0
}, {
name: 'small',
minWidth: 768
}, {
name: 'medium',
app.directive('a', () => {
return {
restrict: 'E',
link(scope, elem, attrs) {
if (attrs.ngClick || attrs.href === '' || attrs.href === '#') {
elem.on('click', (e) => e.preventDefault());
}
}
};
});
@pertrai1
pertrai1 / tm2iterm.rb
Created September 14, 2016 06:06 — forked from maxim/tm2iterm.rb
Convert TextMate themes into iTerm 2 color schemes.
#!/usr/bin/env ruby
#
# This script is an astonishing feat of top notch
# rockstar craftsmanship. It totally uses artificial
# intelligence to extract colors out of tmTheme and
# build an itermcolors scheme file for iTerm2.
#
# I know this sounds crazy, but it actually knows
# approximately what colors should be used in the
# ANSI list, and tries to find nearest colors from
@pertrai1
pertrai1 / settings.txt
Created August 11, 2016 18:25
Updated ST3 Settings
{
"highlight_line": true,
"theme": "Default.sublime-theme",
"theme": "predawn.sublime-theme",
"color_scheme": "Packages/Predawn/predawn.tmTheme",
// Panel Options
"predawn_findreplace_small": false,
"predawn_quick_panel_small": false,
@pertrai1
pertrai1 / .vimrc
Last active October 23, 2016 23:15
Newest vimrc
" http://chibicode.com/vimrc/
filetype off
set nocompatible
set hidden
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'flazz/vim-colorschemes'
@pertrai1
pertrai1 / quick-git-reference.md
Created May 24, 2016 06:25 — forked from vecano/quick-git-reference.md
Quick Git Reference

Quick Git Reference

Configuring

git config --global user.name "<First Last>"
git config --global user.email <[email protected]>
git config --global core.editor <vim>

git config --global color.ui true

@pertrai1
pertrai1 / keybindings.txt
Last active December 14, 2016 13:39
ST3 Keybindings and Preferences
[
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+ctrl+alt+o"], "command": "extended_switcher", "args": {"list_mode": "window"} },
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+k"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+shift+j"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["n", "n"], "command": "advanced_new_file", "context": [{ "key": "setting.command_mode", "operand": true }]},
{ "keys": ["super+alt+n"], "command": "advanced_new_file"},
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->