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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "public_network" | |
config.vm.synced_folder ".", "/vagrant", type: "rsync", | |
rsync__exclude: [".git/","app/cache", "app/logs", "var"] |
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
input { | |
stdin { | |
type => "stdin-type" | |
} | |
file { | |
type => "apache-access" | |
path => [ "/var/log/apache/access/*" ] | |
start_position => "beginning" | |
} |
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 all data | |
curl -XDELETE localhost:9200/test | |
# create an index and define specific french stop_words | |
curl -XPUT localhost:9200/test -d '{ | |
"settings" : { | |
"index" : { | |
"analysis" : { | |
"analyzer" : { | |
"french" : { |
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
package app; | |
import com.avaje.ebean.Ebean; | |
import com.avaje.ebean.EbeanServer; | |
import com.avaje.ebean.config.ServerConfig; | |
import com.avaje.ebean.config.dbplatform.MySqlPlatform; | |
import com.avaje.ebeaninternal.api.SpiEbeanServer; | |
import com.avaje.ebeaninternal.server.ddl.DdlGenerator; | |
import org.junit.AfterClass; | |
import org.junit.Before; |
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
include "application.conf" | |
db.default.url="jdbc:mysql://localhost/play2test" |