application:about
application:show-preferences
application:show-settings
application:quit
application:hide
application:hide-other-applications
I recently worked on a project which needed to interface five hospital systems to one national system. As part of the SOAP submission to the national system I needed to provide a unique UUID which would identify each user from the source hospital system. I wanted to generate the UUID on the fly as the message was being created - so I needed a way to regenerate the same UUID for the same user.
Each hospital system had their own unique user account reference. So by combining this unique account reference with an organisation identifier, I could generate a unique UUID for users with the same account reference across different facilities.
This is the function I came up with.
Updated (11.03.2025)
Scripts to run specific services
Amazon S3 now supports a new storage class called Intelligent Tiering. This will be a very attractive option for many customers who have datasets that are accessed in unpredictable patterns. You can set this storage class when uploading any new data. However, the below instructions will allow you to set up a lifecycle policy that will change the storage class of data that already exists in your bucket.
To set up a lifecycle policy to change the storage class of the data currently stored in your Amazon S3 bucket, follow the below steps.
Visit the S3 console and go to your bucket of interest.
Click on the Management tab at the top and select + Add lifecycle rule.
Enter a rule name of your choice (e.g., Convert to Intelligent Tiering storage class). Unless you want to filter which data is converted to the new storage class, you can leave the prefix/tag filter field
In order to compile a fully static binary when using Cgo you'll need to link in a C library like musl.
I find it convenient to have a Docker image ready for building these artifacts.
FROM golang
RUN wget https://musl.libc.org/releases/musl-1.2.5.tar.gz && \
tar -xzf musl-1.2.5.tar.gz && \
cd musl-1.2.5 && \
./configure --enable-static --disable-shared && \