Skip to content

Instantly share code, notes, and snippets.

View Poorvak's full-sized avatar

Poorvak Kapoor Poorvak

  • Euler Motors
  • Delhi
View GitHub Profile
@Poorvak
Poorvak / gist:2fb99cb589679c8042c48e51cc1d57f3
Created July 27, 2016 14:04
Elasticsearch Plugins being used
ElastAlert is a simple framework for alerting on anomalies, spikes, or other patterns of interest from data in Elasticsearch.
-----------------------------------------------------------------------------------------------------------------------------
https://github.com/Yelp/elastalert
Search Guard is build upon search-guard-ssl, a plugin which enables and enforce transport protocol (node-to-node) encryption and mutual SSL authentication.
------------------------------------------------------------------------------------------------------------------------------------------------------------
https://github.com/floragunncom/search-guard
Elasticsearch version-2.3.4
@Poorvak
Poorvak / gist:8c111f4b781314af5c90d749a4b22e8e
Last active August 1, 2016 15:07
All nginx modules being used.
For API speed and page responses:
---------------------------------
https://github.com/pagespeed/ngx_pagespeed
Nginx-Access-Plus is a Nginx module allows limiting access to certain http request methods and client addresses.
----------------------------------------------------------------------------------------------------------------
https://github.com/nginx-clojure/nginx-access-plus
This module can be used to protect your server in case system load or memory use goes too high.
-----------------------------------------------------------------------------------------------
#! /bin/bash
. /lib/lsb/init-functions
#------------------------------------------------------------------------------
# Consts
#------------------------------------------------------------------------------
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/sbin/
DAEMON=/usr/sbin/nginx
sudo apt-get install build-essential libc6 libpcre3 libpcre3-dev libpcrecpp0 libssl0.9.8 libssl-dev zlib1g zlib1g-dev lsb-base openssl libssl-dev libgeoip1 libgeoip-dev google-perftools libgoogle-perftools-dev libperl-dev libgd2-xpm-dev libatomic-ops-dev libxml2-dev libxslt1-dev python-dev
sudo ./configure --user=nginx --group=nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --with-threads --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-http_degradation_module --with-http_stub_status_module --with-mail=dynamic --with-mail_ssl_module --with-stream=dynamic --with-stream_ssl_module --with-google_perftools_module --with-cpp_test_module --with-debug