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
upstream my_app { | |
server unix:///var/run/my_app.sock; | |
} | |
server { | |
listen 80; | |
server_name my_app_url.com; # change to match your URL | |
root /var/www/my_app/public; # I assume your app is located at this location | |
location / { |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta> | |
<meta content="0" http-equiv="Expires"></meta> | |
<meta content="no-cache" http-equiv="Cache-Control"></meta> | |
<meta content="no-cache/cache" http-equiv="Pragma"></meta> | |
<title> … </title> | |
<meta name="description" content="Love & Hate"></meta> | |
<link media="screen" type="text/css" href="css/estilo.css" rel="StyleSheet"></link> |
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/bash | |
############################################################################### | |
# CONFIG | |
# AWS config | |
export AWS_SECRET_KEY="XXXX" | |
export AWS_ACCESS_KEY="XXXX" | |
export PATH=$PATH:/usr/local/aws/ec2/bin | |
export EC2_HOME=/usr/local/aws/ec2/ |
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
First of all you have to download and install Virtual Box from its website: https://www.virtualbox.org/wiki/Downloads | |
After that just type in your shell: | |
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="9" bash | |
It will take a lot, because is a 4Gb image. The good thing is that you can stop the download with Cmd + C and run the command again to continue. | |
When finished, launch Virtual Box and you will find an new image that you can use. The password for the admin user is "Password1". |
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
1. Alfredos | |
2. New York Burger | |
3. Homeburger | |
4. Tate's | |
5. La vaca picada |
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
#!/usr/bin/env ruby | |
# | |
# Dependencies: | |
# | |
# This script requires to build and install the branch 'location' of this https://github.com/jaymcgavren/itunes-library fork of 'itunes-library' | |
# It also requires to install 'colorize' gem | |
# | |
# License: GPLv2 | |
# http://www.gnu.org/licenses/gpl-2.0.html | |
# |
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
#!/usr/bin/env ruby | |
base_path="/var/lib/denyhosts" | |
hosts_deny="/etc/hosts.deny" | |
denyhosts_files=%w(hosts hosts-restricted hosts-root hosts-valid users-hosts) | |
files=denyhosts_files.map{|file| "#{base_path}/#{file}"}.push hosts_deny | |
denyhosts_stop="/etc/init.d/denyhosts stop" | |
denyhosts_start="/etc/init.d/denyhosts start" |
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
trinidad@t2:~/seguimiento/app/current$ jruby -S trinidad -f /etc/trinidad/trinidad.yml | |
Jul 18, 2011 6:37:13 PM org.apache.coyote.AbstractProtocolHandler init | |
INFO: Initializing ProtocolHandler ["ajp-bio-3031"] | |
Jul 18, 2011 6:37:13 PM org.apache.coyote.AbstractProtocolHandler init | |
INFO: Initializing ProtocolHandler ["http-bio-3000"] | |
Jul 18, 2011 6:37:13 PM org.apache.catalina.core.StandardService startInternal | |
INFO: Starting service Tomcat | |
Jul 18, 2011 6:37:13 PM org.apache.catalina.core.StandardEngine startInternal | |
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11 | |
2011-07-18 18:37:13 INFO: No global web.xml found |
NewerOlder