This file contains hidden or 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
elasticsearchapp|⇒ brew install elasticsearch | |
==> Downloading https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.5.tar.gz | |
######################################################################## 100.0% | |
==> Caveats | |
If this is your first install, automatically load ElasticSearch on login with: | |
mkdir -p ~/Library/LaunchAgents | |
ln -nfs /usr/local/Cellar/elasticsearch/0.18.5/org.elasticsearch.plist ~/Library/LaunchAgents/ | |
launchctl load -wF ~/Library/LaunchAgents/org.elasticsearch.plist | |
If this is an upgrade and you already have the org.elasticsearch.plist loaded: |
This file contains hidden or 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
remote: ---------------------------- | |
remote: Webbynode git deployment | |
remote: ---------------------------- | |
remote: | |
remote: Nginx+Passenger webserver detected... | |
remote: Setting up DNS... | |
remote: | |
remote: Deploying application centro-cristiano-internacional as centro-cristiano-internacional.webbyapp.com... | |
remote: | |
remote: Configuring addons... |
This file contains hidden or 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
2012-01-18 15:34:52 UTC | |
Subject: Remote MySQL data base connection | |
Original message from you to Webbynode support (2012-01-18 15:34:52 UTC) | |
Hi!. | |
I need to know, how to connect to the webby MySQL database from my local computer. | |
i'am using |
This file contains hidden or 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
defaults: &defaults | |
host: flame.mongohq.com | |
# slaves: | |
# - host: slave1.local | |
# port: 27018 | |
# - host: slave2.local | |
# port: 27019 | |
development: | |
<<: *defaults |
This file contains hidden or 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
cd /usr/local/mysql | |
sudo ./bin/mysql_install_db --user=mysql | |
sudo chown -R mysql ./var | |
cd ~/src |
This file contains hidden or 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
$: ./mongodb/bin/mongod --help for help and startup options | |
Fri Mar 26 15:58:45 Mongo DB : starting : pid = 1002 port = 27017 dbpath = /data/db/ master = 0 slave = 0 64-bit | |
Fri Mar 26 15:58:45 db version v1.4.0, pdfile version 4.5 | |
Fri Mar 26 15:58:45 git version: 514f8bbab657c1dc110d45eea6ea33de296dbb26 | |
Fri Mar 26 15:58:45 sys info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_37 | |
Fri Mar 26 15:58:45 waiting for connections on port 27017 | |
Fri Mar 26 15:58:45 listen(): bind() failed errno:48 Address already in use for port: 27017 | |
Fri Mar 26 15:58:45 MiniWebServer: bind() failed port:28017 errno:48 Address already in use | |
Fri Mar 26 15:58:45 addr already in use | |
Fri Mar 26 15:58:45 warning: web admin interface failed to initialize on port 28017 |
This file contains hidden or 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
<h1>Listing posts</h1> | |
<table> | |
<tr> | |
<th>Name</th> | |
<th>Title</th> | |
<th>Content</th> | |
</tr> | |
<% for post in @posts %> |
This file contains hidden or 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
agatha: [imagenes_carmary_web_server] | |
$ > ruby init.rb | |
Terminado ...... =>2009 11 18 | |
Total archivos convertidos {"count(id)"=>"230"} | |
Terminado ...... =>2009 11 19 | |
Total archivos convertidos {"count(id)"=>"209"} | |
Terminado ...... =>2009 11 20 | |
Total archivos convertidos {"count(id)"=>"200"} | |
Terminado ...... =>2009 11 21 | |
Total archivos convertidos {"count(id)"=>"177"} |
This file contains hidden or 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
def crear_thumbnails(lista_original) | |
thumb = Imagen.new | |
lista_original.each do |nombre| | |
thumb.hacer_thumbnail(RUTA_ORIGINAL, RUTA_THUMBNAIL, @ano, @mes, @dia, nombre) | |
end | |
end |
This file contains hidden or 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
require 'rmagick' | |
require 'soporte/formato' | |
class Imagen | |
include Magick | |
def hacer_thumbnail(ruta_original, ruta_thumbnail, ano, mes, dia, nombre) | |
formato = Formato.new | |
imagen_original = ImageList.new("#{ruta_original}#{ano}/#{formato.agregar_cero(mes)}/#{formato.agregar_cero(dia)}/#{nombre}") |