Skip to content

Instantly share code, notes, and snippets.

@rogerleite
rogerleite / nginx.conf
Created Aug 2, 2012
Configuração Nginx
View nginx.conf
user www-data;
worker_processes 4;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
@rogerleite
rogerleite / postinstall.sh
Created Mar 21, 2012 — forked from evansd/postinstall.sh
postinstall sript from vagrant example box (having it somewhere web-accessible is easiest way to get it on to newly created VMs)
View postinstall.sh
#!/usr/bin/env bash
# Apt-install various things necessary for Ruby, guest additions,
# etc., and remove optional things to trim down the machine.
apt_get_things()
{
apt-get -y update
apt-get -y remove apparmor
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev