Category: Uncategorized

My Jacoco Maven Plugin POM config

Adding it here so I can refer to it in the future. <jacoco.version>0.8.2</jacoco.version>         <min.branch.coverage>0.95</min.branch.coverage>         <min.line.coverage>0.95</min.line.coverage> <plugin>                 <groupId>org.jacoco</groupId>                 <artifactId>jacoco-maven-plugin</artifactId>                 <version>${jacoco.version}</version>                 <executions>                     <execution>                         <id>default-agent</id>                         <goals>                             <goal>prepare-agent</goal>                         </goals>                     </execution>                     <execution>                         <id>default-report</id>                         <goals>                             <goal>report</goal>                         </goals>                     </execution>                     <execution>                         <id>default-check</id>                         <goals>                             <goal>check</goal>                         </goals>                         <configuration>                             <rules>                                 <rule implementation="org.jacoco.maven.RuleConfiguration">                                     <element>BUNDLE</element>                                     <limits>                                         <limit implementation="org.jacoco.report.check.Limit">                                             <counter>BRANCH</counter>                                             <value>COVEREDRATIO</value>                                             <minimum>${min.branch.coverage}</minimum>                                         </limit>...

Funny definition for common HTTP status codes

I saw this on my Twitter feed and can’t help but post it here! ? 404 – Can’t find it 401 – You’re not getting in 403 – Look, you’re in but you’re not allowed 500 – We screwed up 400 – You screwed up 200 – All is...

Git: Syncing fork repo against upstream repo

In case you need to make sure your forked repo is up-to-date with the original repo (i.e. /git/original/HelloWorld vs /git/anton/HelloWorld), here’s what you need to do in your terminal: $ git remote -v $ git remote add upstream git@git.url.io:original/HelloWorld.git $ git remote -v $ git fetch upstream $ git checkout...

DynamoDb Notes

DynamoDb is a NoSQL database, which to me means it’s schema-less, scales horizontally, and has incredible performance when accessing data via K/V pairs.  I’m adding this here as writing about it helps me remember. Two types of primary key Partition key same as a primary key must be unique...

Bash script to check health checks of multiple servers

I had to check over 20 servers to verify they were updated with a new build. The servers had a health check page that had this information along with whether the server was up-and-running. I wrote this quick-and-dirty bash script to do just that.  for i in jetson1 jetson4;...