Skip to content

Instantly share code, notes, and snippets.

View mariusv's full-sized avatar

Marius Voila mariusv

View GitHub Profile
user nginx nginx;
worker_processes 5;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
#!/bin/sh
#
# after.sh
# Author: Marius Voila
# Created: 06/25/2010
# Updated: 07/19/2010
#
# This script is more specific to my needs. I run it after server.sh.
# To get the pg gem to install, I generally have to restart my shell so
# the path to pg_config works.
#!/bin/bash
#chkconfig: 2345 80 05
#description: Nginx
. /etc/rc.d/init.d/functions
INITLOG_ARGS=""
nginx=/usr/local/nginx/sbin/nginx
prog=nginx
#!/bin/sh
#
# server.sh
# Author: Marius Voila
# Created: 06/25/2010
# Updated: 07/19/2010
#
# See my blog post on this script: http://mariusv.com/rackspace-cloud-new-server-script
#
# This script installs everything needed to run a Ruby on Rails application on
###
# VSFTPD.CONF for virtual users with write/read/delete permissions
###
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
@mariusv
mariusv / codesearch.md
Last active August 29, 2015 14:11 — forked from st0le/codesearch.md
source 'http://rubygems.org'
gem 'meinside-ruby', github: 'meinside/meinside-ruby' # my ruby scripts and libraries
gem 'thor'
gem 'geocoder'
@mariusv
mariusv / DevOps
Last active August 29, 2015 14:03 — forked from anonymous/gist:161265
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.