//home | tags | archives | about | grosu.nl | eulinux.org

Articles

floyd - Sat 08 February 2020 - rancid, mikrotik

Ok, I've had this running for years now, so this is mostly a 'do not forget' note-to-self. Rancid supports backing up MikroTik RouterOS configuration.

Add a readonly user to your RouterOS device:

/user add group=read name=rancid disabled=no password=huwakui5phiiVahnuecheiri
# use a long random password

Add the user …

more...

floyd - Sun 06 October 2019 - yaml, ruby, cli

If you have ruby and jq installed, it's as easy as adding a function to your ~/.bashrc (or .kshrc):

function yaml2json()
{
    ruby -ryaml -rjson -e \
         'puts JSON.pretty_generate(YAML.load(ARGF))' $*
}

And then yaml2json document.yaml|jq ...

more...

floyd - Wed 18 September 2019 - shell, shellcheck, scripting

Being a system engineer (or a fan of a UNIX-like OS) would most certainly mean that one is also writing shell scripts. If this is a daily thing, a pattern has probably emerged in the way the scripts are written, a certain style is used in all those scripts. This …

more...

floyd - Mon 03 December 2018 - openbsd, browser, vimb, iridium

Please take this with a grain of salt, this is not a real technical article. Consider it a 'rant about browsers'

Modern day browsers are, in general, ~~steaming piles\^W\^W~~ almost full operating systems. You can even emulate x86 hardware in the browser (e.g: jemul8). This is not …

more...

floyd - Sat 11 August 2018 - openbsd, linux, xterm

Over the years I've been using multiple Linux distros, and was always trying new terminal emulators. Each of them comes with a bunch of eye-candy features, and it's too hard to settle on one of them.

Just try running pacman -Ss terminal emulator (if you're on Arch of course. Otherwise …

more...

floyd - Mon 30 July 2018 - openbsd, httpd, relayd

Tested on: OpenBSD 6.4

I'm moving some of my homelab infrastructure to OpenBSD, and in the meantime I have to use httpd(8) behind a reverse proxy. Issue being: httpd doesn't support extracting the real IP address from headers like X-Forwarded-for, and you can't really log the actual IP …

more...

floyd - Tue 10 July 2018 - openbsd, qemu

Disclaimer: I'm not running any servers at Hetzner currently, and cannot give you any recommendations over the quality of their services.

You know you just can't pass those cheap hetzner dedicated servers. I mean, come on, EUR24/month for your own dedi? Sign me up!

There's only one problem with …

more...

floyd - Mon 23 October 2017 - elasticsearch, tips, linux

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...

floyd - Tue 19 January 2016 - ansible, tips, linux

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...

floyd - Sat 17 October 2015 - logstash, graphite, tips, linux

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...

←Previous 1 2 3 4 5 6 Next→