Skip to content

Instantly share code, notes, and snippets.

View malev's full-sized avatar

Marcos Vanetta malev

View GitHub Profile
@malev
malev / nginx.conf
Created February 26, 2012 19:21
nginx.conf file
user malev rvm;
worker_processes 2;
events {
worker_connections 1024;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby;
include mime.types;
@malev
malev / nginx
Created February 26, 2012 19:17
/etc/init.d/nginx file!
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid
@malev
malev / gist:717092
Created November 26, 2010 19:00
Include in Ruby
module MyModule
def my_method(variable)
puts "the variable is " + variable.to_s
end
end
class Clase
include MyModule