Golang tips/tricks

Implicit reference types Slices, maps and channels are reference types that do not require the extra indirection of an allocation with new. Things ain’t what they seem like Will output: 1 = one2 = two Read more

Golang Context

I’m learning golang and I have reached chapter covering contexts. I initially understood the idea behind contexts but to further widen my understanding I’m gonna cover custom implementation here. Context is an interface Golang context is an interface with following... Read more

Nomad Job Samples

Placing job task on certain node Think to note here is that after applying the job the tasks may not be shut-down on previous selector because target node may not exists and to prevent the outage it will stay the... Read more

Useful awscli commands

Logging into Elastic Container Registry Read more

Nomad Variables

Node Variables Variable Description Example Value ${node.unique.id} 36 character unique client identifier 9afa5da1-8f39-25a2-48dc-ba31fd7c0023 ${node.region} Client’s region global ${node.datacenter} Client’s datacenter dc1 ${node.unique.name} Client’s name nomad-client-10-1-2-4 ${node.class} Client’s class linux-64bit ${attr.<property>} Property given by property on the client ${attr.cpu.arch} => amd64... Read more

Ansible template syntax

Arithmetic operations For loop And/Or in template Array of IP addresses in group Template Filters https://tedboy.github.io/jinja2/templ14.html Read more

Useful Ansible Variables

Page for all useful Ansible variables that I used during development of Ansible modules. Check that host is in group (group_names) Listing all hosts in group Counting number of hosts having a true value in a fact Access other host... Read more

Starting JFR on server without GUI

When issues occur with some JVM application, it can be useful to do some capturing of JVM events using built-in flight recorder. Load imposed by JFR can be controlled by profiles, and usually it’s from 5-15% for normal usage (unless... Read more

Enabling JMX endpoint on running JVM process

Sometimes during inspection of production problems it can be very useful to enable JMX endpoint on running JVM process. To do this, perform the follow commands as process user. To enable JMX with flags during process tartups Read more

Running specific integration test in maven

Read more