Skip to content

Instantly share code, notes, and snippets.

View nboire's full-sized avatar

Nicolas BOIRE nboire

View GitHub Profile
@nboire
nboire / Vagrantfile
Created July 8, 2019 14:35
Mac + Docker + Symfony via a vagrant box
# -*- 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"]
@nboire
nboire / logstash.conf
Last active August 29, 2015 14:10
docker-logstash.conf
input {
stdin {
type => "stdin-type"
}
file {
type => "apache-access"
path => [ "/var/log/apache/access/*" ]
start_position => "beginning"
}
@nboire
nboire / elasticsearch-analysis-french-stopwords
Created January 16, 2013 11:11
Elasticsearch : override stopwords list for specific "language" analyzer ( exemple with "french" list )
# 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" : {
@nboire
nboire / EbeanTest.java
Created May 28, 2012 16:15
Playframework play2 EbeanTest Class to Clean Database before each test
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;
@nboire
nboire / application-test.conf
Created May 25, 2012 15:19
Play2 command for launch "test" with custom conf : "play2test"
include "application.conf"
db.default.url="jdbc:mysql://localhost/play2test"