Skip to content

Instantly share code, notes, and snippets.

@itayw
itayw / elasticsearch.yml
Created July 27, 2015 07:27
ElasticSearch write heavy configuration
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
import pandas
import numpy as np
import scipy
import statsmodels.api as sm
import os
import sys
import json
import traceback
import logging
from time import time
https://discuss.elastic.co/t/logstash-udp-input-queue-size/24253
http://dekiwiki.ties2.net/Fortinet/Fortinet_SSL_VPN_Client_Installers
http://dekiwiki.ties2.net/@api/deki/files/290/=forticlientsslvpn_linux_4.0.2289.tar.gz
sudo apt-get install libgtk2.0-0:i386
bin/elasticsearch -d -p /var/run/elasticsearch_http.pid --default.config=/etc/elasticsearch/http/elasticsearch.yml --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch/http
{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "categoryBehavior:\"/Authorization*\" OR categoryBehavior:\"/Authentication*\" -(categoryBehavior:\"/Authorization/Verify\") -(categoryBehavior:\"/Authentication/Verify\")",
"analyze_wildcard": true
}
},
"filter": {
@itayw
itayw / gulpfile.js
Last active August 29, 2015 14:16
Gulp - build and watch
var watchify = require('watchify');
var browserify = require('browserify');
var paths = {
lib: './www/lib/index.js',
dist: './www/js/'
};
var bundler = browserify(paths.lib, browserify.args);
var dgram = require("dgram");
var fs = require("fs");
var stream = fs.createWriteStream("received.json",{ flags: 'w',
encoding: "utf8",
mode: 0666 });
var server = dgram.createSocket("udp4");
server.on("message", function (msg, rinfo) {
console.log("server got: " + msg + " from " +
rinfo.address + ":" + rinfo.port);
@itayw
itayw / readd.sh
Created February 9, 2015 18:05
re add submodule
$ git ls-files --stage wiki
160000 5a7f18e56b951d94d087887a678c3b6654def187 0 wiki
$ git rm --cached wiki
rm 'wiki'
$ git submodule add https://github.com/joola/joola.wiki.git wiki
Adding existing repo at 'wiki' to the index
sudo /usr/share/elasticsearch/bin/plugin -install polyfractal/elasticsearch-kopf
sudo /usr/share/elasticsearch/bin/plugin -install polyfractal/elasticsearch-inquisitor