Skip to content

Instantly share code, notes, and snippets.

Avatar

Marius Voila mariusv

View GitHub Profile
View DevOps
== 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.
View Gemfile
source 'http://rubygems.org'
gem 'meinside-ruby', github: 'meinside/meinside-ruby' # my ruby scripts and libraries
gem 'thor'
gem 'geocoder'
View Vsftpd virtual users conf
###
# 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
View server.sh
#!/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
View nginx
#!/bin/bash
#chkconfig: 2345 80 05
#description: Nginx
. /etc/rc.d/init.d/functions
INITLOG_ARGS=""
nginx=/usr/local/nginx/sbin/nginx
prog=nginx
View after.sh
#!/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.
View nginx.conf
user nginx nginx;
worker_processes 5;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {