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