Skip to content

Instantly share code, notes, and snippets.

View nzajt's full-sized avatar

nate daily nzajt

View GitHub Profile
@nzajt
nzajt / NERDTree.mkd
Last active August 29, 2015 13:56 — forked from m3nd3s/NERDTree.mkd

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

wget -O - http://download.newrelic.com/548C16BF.gpg | sudo apt-key add -;
sudo sh -c 'echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list';
sudo apt-get update
sudo apt-get -y install newrelic-php5
sudo newrelic-install install
@nzajt
nzajt / Vimrc
Created May 2, 2014 23:14
My Vimrc File
filetype off
call pathogen#incubate()
filetype plugin indent on
set encoding=utf-8
" Maps
nmap nt :NERDTreeToggle<return>
nmap Nt :NERDTreeToggle<return>
imap <c-w> <esc>:w<return>
nmap <silent> cs /asdfasdfasdf<return>i
nmap ww <c-w><c-w>
@nzajt
nzajt / livereloadmagento
Last active August 29, 2015 14:03
A Live sample of guard live reload for magento
# A sample Magento Guardfile
# More info at https://github.com/guard/guard#readme
guard 'livereload' do
watch(%r{magento/app/design/frontend/netmedia/lgl2014/template/.+\.(phtml)$})
watch(%r{magento/app/design/frontend/netmedia/lgl2014/layout/.+\.(xml)$})
watch(%r{magento/app/code/local/.+\.php})
watch(%r{magento/skin/frontend/netmedia/lgl2014/.+\.(css|js)})
watch(%r{magento/js/.+\.js})
end
@nzajt
nzajt / nginx.conf
Last active August 29, 2015 14:03
nginx.conf for osx
worker_processes 4;
events {
worker_connections 1024;
multi_accept on;
}
http {
default_type application/octet-stream;
include /usr/local/etc/nginx/mime.types;
echo "Started"
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew update
brew install --without-apache --with-fpm --with-mysql --whith-mcrypt php55
brew install nginx mariadb
echo "done"
@nzajt
nzajt / Sass Bootstrap Variables
Created November 13, 2012 18:26
A good list of SASS variables for those using SASS with Boostrap
//
// Variables
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
# --------------------------------------------------------
# Update It
#---------------------------------------------------------
sudo yum -y update
# --------------------------------------------------------
# Packages
# --------------------------------------------------------
@nzajt
nzajt / bootstrap-chef.sh
Created March 15, 2013 22:50
Get chef-solo up and going
# ---------------------------------------------
# Chef Folders
# ---------------------------------------------
mkdir /var/chef
cd /var/chef
mkdir -p cookbooks/main/recipes
@nzajt
nzajt / magento-startup.sh
Last active December 17, 2015 19:49
Magento Startup Ununtu
#!/usr/bin/env bash
apt-get update
apt-get install -y apache2
apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql php5-xsl -y
apt-get install vim -y
apt-get install git -y
apt-get install s3cmd -y
apt-get install zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh