golang: Marshalling Struct into JSON

You might be here because an AWS error when trying to save to DynamoDB similar to this: or just trying to figure out why your json structure doesn’t have certain fields after marshalling. In go if you have the following structure and are trying to fill it and marshalling like this: You are going to … Read More

Delete Jenkins Build History

If you want to delete the whole history build because of reasons (I do this whenever I was building a job and now is ready for prime time!) you will have to go to: http://your-server/script and then run the following:

GO programming: exporting functions, structs to other packages

So this is interesting and I found out only after facing the issue, in order to export a function to a different package the function should start with uppercase, and then while trying trying to use a struct from a different package I realize that this is also true for those and any other identifier, … Read More

NodeJS+Typescript Project Quickstart

1. Step one, create a directory for your project 2. Init your project (using yarn in this case) 3. Add typescript to the project 4. Init Typescript (create tsconfig.json, this one has a lot of options but this will get you started) 5. Create the folder for the src code 6. Create the file app.ts … Read More

Mini server using netcat

I was trying to run some tests with lighthouse and was looking for the most simple webserver that I could get just to check what the report would look like, so I didn’t want to run apache locally or a simple nodejs or python script I was looking for the most bare bones thing that … Read More

AWS golang Lambda using macOS

If you happen to be trying to create a Lambda function in golang, you might endup getting this error: If that’s how you ended up in this corner of the web let me point you in the right direction. Here: https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html The problem was that I didn’t read the section “Creating a .zip file on … Read More

Learning Go

Yesterday while searching for my Valorant summoner name I learned a couple of important things. Number 1. There’s no such thing as a Valorant summoner name. Number 2. While searching someone suggested to use the Riot API to find your League of Legends summoner name. *Mind Blown* I had to idea such thing existed, but … Read More