Skip to content

Instantly share code, notes, and snippets.


Lars K.W. Gohlke lkwg82

View GitHub Profile
dsyer /
Last active March 17, 2022 22:04
Notes on Spring Boot startup performance

Anatomy of Spring Boot Start Up Timing

When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.

Basic empty web app with actuators has three such gaps:

0                                                                        1410ms
       |           578             |     |144(5)|         | 133(6) |
ambakshi /
Last active October 25, 2021 15:50
Assume an IAM role. An interesting way of doing IAM roles is to give the instance permissions to assume another role, but no actual permissions by default. I got this idea while setting up security monkey:
# Assume the given role, and print out a set of environment variables
# for use with aws cli.
# To use:
# $ eval $(./
woods / gen-key-script
Last active February 27, 2023 16:00
Creating gpg keys non-interactively
View gen-key-script
Key-Type: 1
Key-Length: 2048
Subkey-Type: 1
Subkey-Length: 2048
Name-Real: Root Superuser
Expire-Date: 0
ClientGetter playClientGetter = new ClientGetter() {
private int playPort;
private String playHost;
String portString = System.getenv("PLAY_PORT");
if (portString == null)
portString = "9000";
playPort = Integer.parseInt(portString);
playHost = System.getenv("PLAY_HOST");
kennym / blogspot_to_jekyll.rb
Created July 30, 2011 18:14
Migrate your blogger blog posts to jekyll.
View blogspot_to_jekyll.rb
#!/usr/bin/env ruby
# Convert blogger (blogspot) posts to jekyll posts
# Basic Usage
# -----------
# ./blogger_to_jekyll.rb feed_url
# where `feed_url` can have the following format: