This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyModule | |
def my_method(variable) | |
puts "the variable is " + variable.to_s | |
end | |
end | |
class Clase | |
include MyModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name midominio.com www.midominio.com mialias.com www.mialias.com; | |
root /opt/nginx/html/infofund/public; | |
access_log /opt/nginx/html/infofund/log/infofund.access.log; | |
error_log /opt/nginx/html/infofund/log/infofund.error.log; | |
rewrite_log on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var template = " | |
<h1>{{header}}</h1> | |
{{#bug}} | |
{{/bug}} | |
{{#items}} | |
{{#first}} | |
<li><strong>{{name}}\</strong></li> | |
{{/first}} | |
{{#link}} | |
<li><a href="{{url}}">{{name}}</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var helpers = { | |
truncate: function (str) { | |
if (str.length > 400) { | |
return str.slice(0, 400) + "..."; | |
} else { | |
return str; | |
} | |
} | |
} | |
var template = "<div class='description'>{{#truncate}}{{item.description}}{{/truncate}}</div>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/html' id='template'> | |
<div class='description'>{{#truncate}}{{item.description}}{{/truncate}}</div> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name example.com www.example.com; | |
root /home/malev/sites/infofund/current/public; | |
access_log /home/malev/sites/infofund/current/log/infofund.access.log; | |
error_log /home/malev/sites/infofund/current/log/infofund.error.log; | |
rewrite_log on; | |
passenger_enabled on; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PHP_SCRIPT=/usr/bin/php5-fcgi | |
RETVAL=0 | |
case "$1" in | |
start) | |
echo "Starting fastcgi" | |
$PHP_SCRIPT | |
RETVAL=$? | |
;; | |
stop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name *.mycoolblog.com mycoolblog.com www.mycoolblog.com; | |
root /home/malev/blog/current/; | |
try_files $uri $uri/ /index.php; | |
location / { | |
index index.html index.htm index.php; | |
} |
OlderNewer