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
#!/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
# Taller de Chef: Administra sistemas como Ferran Adriá cocina | |
## Qué es Chef | |
- ¿Que es? | |
Framework de integración de sistemas. Nos proporciona recursos y asbtracciones de alto nivel para | |
manejar nuestra máquina. | |
- ¿Para que Sirve? | |
- Consistencia de nuestra plataforma. | |
- Mayor control de la plataforma. |
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
before "deploy:rollback:revision", "deploy:rollback_database" | |
desc "Rolls back database to migration level of the previously deployed release" | |
task :rollback_database, :roles => :db, :only => { :primary => true } do | |
if releases.length < 2 | |
abort "could not rollback the code because there is no prior release" | |
else | |
rake = fetch(:rake, "rake") | |
rails_env = fetch(:rails_env, "production") | |
migrate_env = fetch(:migrate_env, "") |
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
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" |
NewerOlder