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
| → brew install sphinx | |
| ==> Downloading http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz | |
| File already downloaded and cached to /Users/angel/Library/Caches/Homebrew | |
| ==> ./configure --prefix=/usr/local/Cellar/sphinx/0.9.9 --disable-debug --disable-dependency-tracking --with-pgsql | |
| Exit status: 1 | |
| http://github.com/mxcl/homebrew/blob/master/Library/Formula/sphinx.rb#L18 | |
| ==> Environment |
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
| → brew install sphinx -d | |
| ==> Downloading http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz | |
| File already downloaded and cached to /Users/angel/Library/Caches/Homebrew | |
| ==> ./configure --prefix=/usr/local/Cellar/sphinx/0.9.9 --disable-debug --disable-dependency-tracking --with-pgsql | |
| Error: #<BuildError: Failure while executing: ./configure --prefix=/usr/local/Cellar/sphinx/0.9.9 --disable-debug --disable-dependency-tracking --with-pgsql> | |
| /usr/local/Library/Homebrew/formula.rb:298:in `system' | |
| /usr/local/Library/Formula/sphinx.rb:18:in `install' | |
| /usr/local/Library/Homebrew/install.rb:89:in `install' | |
| /usr/local/Library/Homebrew/formula.rb:178:in `brew' |
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 'nokogiri' | |
| require 'rtf' | |
| # ampliamos RTF::Node con métodos para parsear HTML | |
| # tiene que hacerse añadiendo métodos a la clase existente | |
| # porque cuando ahcemos node.apply(..){|n| } el objeto n | |
| # (que puede ser cualquier subclase de RTF::Node) tiene que tenerlo | |
| class RTF::Node |
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
| ----- | |
| delete the index if it exists | |
| {"ok":true,"acknowledged":true} | |
| ----- | |
| create it with 'folded_analyzer' that includes the 'asciifolding' | |
| {"ok":true,"acknowledged":true} | |
| ----- | |
| create a mapping for 'title' using the folded_analyzer | |
| {"ok":true,"acknowledged":true} |
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
| rootLogger: INFO, console, file | |
| logger: | |
| # log action execution errors for easier debugging | |
| action: DEBUG | |
| # reduce the logging for aws, too much is logged under the default INFO | |
| com.amazonaws: WARN | |
| # gateway | |
| #gateway: DEBUG | |
| #index.gateway: DEBUG |
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
| # | |
| # This file configures the NewRelic RPM Agent, NewRelic RPM monitors Rails | |
| # applications with deep visibility and low overhead. For more information, | |
| # visit www.newrelic.com. | |
| # | |
| # <%= generated_for_user %> | |
| # | |
| # here are the settings that are common to all environments | |
| common: &default_settings | |
| # ============================== LICENSE KEY =============================== |
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
| [17:23:30,383][INFO ][node ] [Gideon, Gregory] {elasticsearch/0.10.0}[692]: initializing ... | |
| [17:23:30,524][INFO ][plugins ] [Gideon, Gregory] loaded [cloud-aws] | |
| [17:23:33,297][DEBUG][discovery.ec2 ] [Gideon, Gregory] using initial_ping_timeout [3s] | |
| [17:23:36,875][INFO ][node ] [Gideon, Gregory] {elasticsearch/0.10.0}[692]: initialized | |
| [17:23:36,875][INFO ][node ] [Gideon, Gregory] {elasticsearch/0.10.0}[692]: starting ... | |
| [17:23:37,017][INFO ][transport ] [Gideon, Gregory] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/10.214.226.48:9300]} | |
| [17:23:37,696][TRACE][discovery.ec2 ] [Gideon, Gregory] building dynamic unicast discovery nodes... | |
| [17:23:37,707][TRACE][discovery.ec2 ] [Gideon, Gregory] adding i-5734193e, address 10.254.95.17 | |
| [17:23:37,707][TRACE][discovery.ec2 ] [Gideon, Gregory] adding i-5734193e, address 10.254.95.17 | |
| [17:23:37,707][TRACE][discov |
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
| ips = ["192.168.166.142","192.168.166.144", "192.168.166.159", "192.168.166.160", "192.168.166.162", "192.168.166.164", "192.168.166.131", "192.168.166.137", "192.168.166.153", "192.168.166.163", "192.168.166.158"] | |
| etc_hosts_template = ' | |
| # | |
| 127.0.0.1 localhost | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost | |
| %s vlex.com' | |
| ips.each do |ip| |
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
| curl -XPUT localhost:9200/_percolator/documents/myfilter -d '{ | |
| "title": "cisco", | |
| "query": { | |
| "query_string": { | |
| "query": "cisco" | |
| } | |
| } | |
| }' |
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
| ######################################################## | |
| # BASE CONFIGURATION EZPROXY | |
| Option ProxyByHostname | |
| MaxLifetime 120 | |
| MaxSessions 500 | |
| MaxVirtualHosts 1000 | |
| Audit Most |
OlderNewer