Skip to content

Instantly share code, notes, and snippets.

@l3lake
l3lake / .vimrc.after
Last active August 29, 2019 14:39 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
" gui settings
set guifont=Menlo\Regular:h16
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name www.example.com;
root /var/www/vhosts/example.com/public/;
location /
{
@l3lake
l3lake / .vimrc.before
Last active August 29, 2015 14:04
.vimrc.before
" Map leader
let mapleader = ","
let g:mapleader = ","
" Disable supertab so I can paste my copy yo!
call janus#disable_plugin('supertab')
" Corrective action for glyphs (I think)
set ambiwidth=single
@l3lake
l3lake / .bash_aliases
Last active August 29, 2015 14:04
bash_aliases
# |------------------------------------------------------------------------------
# | Aliases
# | https://www.digitalocean.com/community/tutorials/an-introduction-to-useful-bash-aliases-and-functions
# |------------------------------------------------------------------------------
# Navigating and Listing
alias ll="ls -lhA"
alias ls="ls -CF"
alias sl="ls"
alias lsl="ls -lhFA | less"
@l3lake
l3lake / usevm.md
Created July 24, 2014 04:44 — forked from fideloper/usevm.md

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

@l3lake
l3lake / .gitconfig
Last active August 29, 2015 14:04 — forked from fideloper/.gitconfig
[user]
name = Blake
email = Email
[color]
ui = true
[github]
user = l3lake
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
#!/usr/bin/env bash
echo ">>> Installing"
# Update
sudo apt-get -y update && -y upgrade
echo ">>> Install base packages"
sudo apt-get install -qq curl unzip git-core ack-grep wget build-essential python-software-properties
echo ">>> Setting up Vim"
@l3lake
l3lake / installOwncloud.sh
Last active August 29, 2015 14:04
Script: Install ownCloud on an Ubuntu 12.04 VPS
#!/bin/bash
#
# Install owncloud
# http://www.rosehosting.com/blog/script-install-owncloud-on-an-ubuntu-12-04-vps/
#
# This script assumes you already have installed Apache & MySQL
# Save the script as installOwncloud.sh (if you haven’t already), and
# change “YOUR MYSQL ROOT PASSWORD” with your MySQL root password and then
# type the following commands:
#
echo "------------------> Installing unzip curl wget build-essential python-software-properties..."
sudo apt-get -y install unzip vim curl wget build-essential python-software-properties
echo "------------------> Updating Ubuntu..."
sudo apt-get update
echo "------------------> Installing prereqs..."
sudo apt-get -y install ruby-dev rake exuberant-ctags ack-grep
echo "------------------> Installing Janus..."