Skip to content

Instantly share code, notes, and snippets.

View rsrini7's full-sized avatar
๐Ÿ˜ƒ
Happy

Srinivasan Ragothaman rsrini7

๐Ÿ˜ƒ
Happy
View GitHub Profile
### USAGE
###
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
### ElasticSearch version
@rsrini7
rsrini7 / rc.d
Last active August 29, 2015 14:18 — forked from jippi/rc.d
update-rc.d logstash-shipper defaults
update-rc.d logstash-reader defaults
@rsrini7
rsrini7 / logstash.conf
Created April 6, 2015 16:07
My first java multiline logstash config
input {
file {
add_field => [ 'host', 'localhost' ]
path => '/tmp/application.log'
type => 'app'
codec => 'plain'
start_position => "beginning"
}
}
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
@rsrini7
rsrini7 / gitbub-forked-update
Last active January 23, 2018 13:16
Update Github forked repo
#http://stackoverflow.com/questions/7244321/how-to-update-github-forked-repository
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
@rsrini7
rsrini7 / java_sublime_build
Last active August 29, 2015 14:20
Javac and Java Sublime Build
#java.sublime-build (filename)
{
"cmd": ["javacr.bat","$file"]
}
#javacr.bat (filename - PATH env)
@ECHO OFF
set "classext=.class"
cd %~dp1
if exist %~n1%classext% (
@rsrini7
rsrini7 / Arduino_Ubuntu_sh
Created May 2, 2015 03:36
Arduino Ubuntu - one time activity to avoid repeated chmod of ttyACM*
sudo gpasswd -a <user> dialout
sudo chmod a+rw /dev/ttyACM*
@rsrini7
rsrini7 / mosquitto windows
Last active August 29, 2015 14:20
mqtt mosquitto in windows
#https://www.dropbox.com/s/ftbxeotrcmmh3t8/mosquitto.zip?dl=0
In one cmd window run: mosquitto.exe
In the next cmd window run: mosquitto_pub.exe -t test -l
In another cmd window run: mosquitto_sub.exe -t test
In the last cmd window run: mosquitto_sub.exe -t test