claw0ry.net

Hi, my name is Mads! *waves*

I'm a developer and Linux enthusiast from Norway. I mainly use this site as a personal reference, cause my brain too smol. Maybe you'll find something interesting too.

  • I grew up on the internet with Linux and open source in the early 2000s.
  • I believe the tech world has become to overengineered, abstracted and complicated.
  • I'm always searching for a deeper knowledge on how things work.

Bluesky: claw0ry.net


* Get changed fields in server scripts in ServiceNow

In ServiceNow you often write Business Rules or some other logic, based on fields that has been changed/updated. For the most part, this can be done via GUI, but sometimes you have to resort to some scripting. If you ever need to get which fields has been changed/updated, e.g in an advanced filter, this is how you check for it.

Read more »


* Golang: Generate Random Numbers

Here’s how to generate pseudorandom numbers in Go between to values. NOTE: You should always seed your random generator, or else it will produce the same result every time. Include this snippet at the top of your main func.

Read more »


* Golang: Format Date and Time

Most programming languages use the same layout (dd-mm-yyyy) to format date and time, but Go decided to go a different route. Below is a little cheat sheet of how to format date and time in Go.

Read more »


* Improving Powershell Profile

For years I’ve been a fan of the linux bash, with easy support for ssh-keys, colorized directory listings and git info the prompt. But at the same time, I really love Powershell. I have finally found some usefull Powershell modules that has made me switch completly to Powershell in the terminal.

Read more »


* Getting Started With Azure Functions

Azure Functions is one of Microsofts serverless services that you can setup in Azure. Being serverless means that you dont have to worry about the infrastructure and environment behind it and you will only pay for the capacity that you actually use when the function is running. Traditionally you would have a server that runs 24/7 and consume capacity. Very simplified, serverless will spin up and down as requests comes in. This means that you only have to focus on the code it should run.

Read more »