Elasticsearch tips #2: modifying and removing index settings

Elasticsearch tip #2:

TL;DR: configure an index setting to null, to use the default

Quite often you might need to change an elasticsearch' index setting to something else than the default, e.g. to manually control the shard allocation process (allocating specific indices only on specific nodes):

# curl -XPUT …
more…

Ansible: Using conditional role dependencies

TL;DR: You can use when: in ${role}/meta/main.yml

A while ago I started using Ansible to provision some aspects of my lab and servers. At some point, for one of the roles being worked on (some elasticsearch mini-cluster in this particular case), a specific role needed to …

more…

Logstash tips #1: Measuring logstash performance

Earlier, I've mentioned that I intend to start a series of short notes and tips. Today, a new tip.

Logstash tip #1: measuring logstash performance

TL;DR: use the 'metrics' filter to gather metrics about your logstash instance.

A while ago I started using logstash for, well, collecting some logs …

more…

Elasticsearch tips #1: deploying Elasticsearch to multi-homed servers

I figured I should start a series of short notes (can't call them articles) about random stuff I encounter in my day-to-day job, and which took me some time to figure out. Here we go.

Elasticsearch tip #1:

TL;DR: make use of the network.publish_host setting when deploying ES …

more…

My .fluxbox/keys

Just for future reference. If you want - use it, at your own risk ;)

# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace

# scroll on the toolbar to change current window …
more…

Blog update

A short update for the few people that read this: I moved away from blogger. Too feature-rich for the type of content I'm aiming for. Why should anyone need to wait on 2-3 js libs and a bunch of images when all the blog has is usually plain text content …

more…

updating a github forked repository

For people hacking on stuff using github repos:
Whenever you fork someone else's repo, make some changes to it, and then want to update your repo with the changes made upstream by the author, it's easy enough as:

# Add the remote, call it "upstream":  
git remote add upstream https://github …
more…

colored git output

Ok, another issue I was facing after returning to Slackware:
I was getting weird escape codes in the terminal when issuing some git commands, like git log or git diff:

ESC[33mcommit e5f753a1ae0acf48110589ed654c1e1f67fd1a6fESC[m
Author: Floyd ****
Date:   Fri Jan 24 13:13:33 2014 -0800

    Initial commit

ESC[1mdiff --git …
more…

Slackware... and UTF-8

After about 5 years of debian, I'm running Slackware again on my laptop.

It's a beautiful distro, despite the fact that it doesn't have a 'proper' package management system by current standards. I'm managing my packages by using sbopkg, which is basically an automated tool that allows you to easily …

more…

Quick fix for a flatbed scanner

So, I've got this old cheap HP Scanjet 2400 flatbed scanner for a couple of bucks, but with a minor, yet unpleasant, mechanical problem.
After scanning, when the mobile head was returning to the original position, it was stopping at around 2-3cm from the resting position, continuing to make a …

more…