Sometimes you get some XLS schemas that are full of additional annotations and comments you want strip. Annotations and comments are nice but annoying when trying to compare two incremental versions of some schema and try to pin point just the differences. Bellow there is a script used to remove all comments and the <xs:annotation>… Read More »
While working with XML Documents and trying to implement the XMLSignature I hit the issue of filtering what to sign from an XML. The basic documentation of the from XML signature standard XML Signature Syntax and Processing Version 1.1 describes several methods that can be used to transform an XML to prepare it for signing.… Read More »
There is a neat way using a bash one liner to change attributes of all the files from a path and sub paths that match a criteria. As an example following line makes all the script files from a path and sub paths executable.
Here I describe a bash script to extract only the health status of a Spring Boot application. As an example I used an adaptor application that interfaces between two external systems. Note that there several components of the adaptor that need to be monitored: control queues a database connection disk space input queues output queues… Read More »
Another bash one liner that saved my sanity. While generating site wide certificates from LetsEncrypt you have to check if a certain TXT key was added to the DNS record (_acme-challenge). Here is the magic line that returns only that for my domain “voina.fr”. So when waiting to see if the DNS TXT record was… Read More »
Looking around microservice communication protocols I discovered protocol buffers and gRPC as a new alternative to REST with XML or JSON. XML is used in standards like ISO 20022 for financial messages, JSON is widely used by all the new APIs in fintech (Stripe, TransferWise, lots of PSD2 API implementation of banks etc.) Both of… Read More »
In all this talk of distributed systems the Interplanetary File System is a fun practical subject. Obviously golang should be part of that. According to Wikipedia: The InterPlanetary File System (IPFS) is a protocol and peer-to-peer network for storing and sharing data in a distributed file system. IPFS uses content-addressing to uniquely identify each file… Read More »
This is a straight forward list of steps to connect to github with a ssh key instead of user/password. I am using Linux on my development machine so things are quite easy with ssh. STEP 1: Create a ssh key # ssh-keygen -t rsa -b 4096 -C “firstname.lastname@example.org” STEP2: Add the key to the authentication… Read More »