Skip to content

Instantly share code, notes, and snippets.

View debraj-manna's full-sized avatar

Debraj Manna debraj-manna

  • Spotnana
  • Bengaluru
View GitHub Profile
@debraj-manna
debraj-manna / build.xml
Created June 17, 2019 14:01 — forked from alt-grr/build.xml
Download Maven dependencies using Ant
<project name="lib" default="download-libs" xmlns:artifact="urn:maven-artifact-ant">
<property name="maven.ant.tasks.version" value="2.1.3"/>
<property name="maven.ant.tasks.jar" value="maven-ant-tasks-${maven.ant.tasks.version}.jar"/>
<property name="maven.ant.tasks.mirror"
value="http://ftp.ps.pl/pub/apache/maven/ant-tasks/${maven.ant.tasks.version}/binaries/"/>
<target name="download-libs" depends="-init-maven-task">
<artifact:dependencies pathId="dependencies.classpath">
<remoteRepository id="maven-central" url="http://repo1.maven.org/maven2/"/>
curl http://localhost:8983/solr/discovery/update --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8'
curl http://localhost:8983/solr/discovery/update --data '<commit/>' -H 'Content-type:text/xml; charset=utf-8'
@debraj-manna
debraj-manna / curl
Last active August 29, 2015 14:27 — forked from stonith/curl
logstash elasticsearch template - disable _all field, enable simple analyzer, set default query field to @message
curl -XPUT localhost:9200/_template/logstash -d '
{
"template" : "logs-*",
"settings" : {
"index.analysis.analyzer.default.type": "simple",
"index.cache.field.type": "soft",
"index.compress.stored": true,
"index.merge.policy.max_merged_segment": "5g",
"index.query.default_field": "@message",
"index.refresh_interval": "5s",