Skip to content

Instantly share code, notes, and snippets.

View nzajt's full-sized avatar

nate daily nzajt

View GitHub Profile
@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
@nzajt
nzajt / gist:6271093
Last active December 21, 2015 07:28
Vagrant Up
vagrant init ubuntu http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box
vagrant up
@nzajt
nzajt / gist:8466723
Created January 17, 2014 01:12
Ubuntu vsftpd.conf -- For Passive ftp. Good for them Gui Clients.
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
@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