Skip to content

Instantly share code, notes, and snippets.

@mdrmike
mdrmike / Ubuntu 14.04 + NGINX + PHP5-FPM + MARIADB.md
Last active February 4, 2016 23:17
Ubuntu 14.04 NGINX WebServer for production, development, and/or desktop use.

UPDATE UBUNTU 14.04

sudo apt-get update
sudo apt-get -y upgrade

CORE INSTALL

note: you'll need to enter a root password for mysql

sudo apt-get -y install nginx php5-fpm php5-cli php5-gd mariadb-server-5.5

Optional: Install Development related apps

sudo apt-get -y install git phpmyadmin

@to4iki
to4iki / symlink.sh
Created May 16, 2014 14:26
create symbolic link scripts
@JeffreyWay
JeffreyWay / .vimrc
Last active November 1, 2024 18:35
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@konitter
konitter / frontend-tools.md
Last active September 29, 2019 11:32 — forked from gaspanik/kkmsz20130417.mdown
Frontend Tools

Articles, Styletiles & Styleguide

Frameworks

@caschbre
caschbre / fix-permissions.sh
Created February 10, 2013 19:34
Bash script to correct folder & file permissions for a Drupal site. Usage: sudo bash fix-permissions.sh --drupal_path=your/drupal/path --drupal_user=your_user_name @see http://drupal.org/node/244924 for more information.
#!/bin/bash
if [ $(id -u) != 0 ]; then
printf "This script must be run as root.\n"
exit 1
fi
drupal_path=${1%/}
drupal_user=${2}
httpd_group="${3:-www-data}"
@fideloper
fideloper / usevm.md
Created June 6, 2012 02:24
You should develop in a Virtual Machine

#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!

@olistik
olistik / gist:2627011
Last active August 6, 2025 11:24
Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)

Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)

Basic pre-requisites

  • Some utilities:
sudo apt-get install vim tmux git curl
  • Copy/paste from the command line: