Skip to content

Instantly share code, notes, and snippets.

View phirschybar's full-sized avatar

Ben Hirsch phirschybar

View GitHub Profile
@phirschybar
phirschybar / gist:bd4ab7edb01f59391018
Created June 14, 2015 12:14
Install S3S3Mirror on Ubuntu

Package s3s3Mirror

sudo apt-get update

sudo apt-get install maven

sudo apt-get install default-jdk

sudo apt-get install screen

{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"product": {
"dynamic" : true,
"properties": {
"name": {
"type": "string",
"analyzer" : "main"
},
"stores": {
"type": "nested",
@phirschybar
phirschybar / gist:2054783
Created March 17, 2012 03:48
Lint error dialog
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Collection extends APP_Controller {
function Collection(){
parent::APP_Controller();
$this->_add_crumb('Collection', '/collection/');