<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>thermcampos blog</title><link href="https://thermcampos.blog/" rel="alternate"/><link href="https://thermcampos.blog/atom/" rel="self"/><id>/atom/</id><updated>2026-11-14T23:33:55Z</updated><author><name>R. Campos</name></author><subtitle>Welcome to my blog, personal corner and stuff</subtitle><entry><title>AI Skills Like a Pro</title><link href="https://thermcampos.blog/post/ai-skills-like-a-pro/" rel="alternate"/><published>2026-11-14T23:33:55Z</published><updated>2026-11-14T23:33:55Z</updated><author><name>R. Campos</name><email>ricardocampos@gmail.com</email></author><id>/post/ai-skills-like-a-pro/</id><summary type="html">&lt;!-- tags: AI, skills, programming --&gt;
&lt;img alt="/attachments/ai-skills-like-a-pro-header.png" src="/attachments/ai-skills-like-a-pro-header.png" /&gt;
&lt;p&gt;Hello hello! In this post I want to talk about &lt;a class="reference external" href="https://aihero.dev/skills"&gt;Matt Pocock's skills&lt;/a&gt; set
that was specifically designed for us, programmers. I don't often
talk about AI here, but this is important. I can't say where you are at
in the AI age, but this is the bare minimum acceptable and expected for
a professional software developer in 2026.&lt;/p&gt;
&lt;p&gt;That said, I'll be giving you a bit of context, the commands to get
the skills installed on your local dev environment and which ones I use on
my setup. It's not hard, but I believe it's nice to get a perspective from
someone else. Let's jump in.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: AI, skills, programming --&gt;
&lt;img alt="/attachments/ai-skills-like-a-pro-header.png" src="/attachments/ai-skills-like-a-pro-header.png" /&gt;
&lt;p&gt;Hello hello! In this post I want to talk about &lt;a class="reference external" href="https://aihero.dev/skills"&gt;Matt Pocock's skills&lt;/a&gt; set
that was specifically designed for us, programmers. I don't often
talk about AI here, but this is important. I can't say where you are at
in the AI age, but this is the bare minimum acceptable and expected for
a professional software developer in 2026.&lt;/p&gt;
&lt;p&gt;That said, I'll be giving you a bit of context, the commands to get
the skills installed on your local dev environment and which ones I use on
my setup. It's not hard, but I believe it's nice to get a perspective from
someone else. Let's jump in.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;div class="section" id="context"&gt;
&lt;h3&gt;context&lt;/h3&gt;
&lt;p&gt;It's really hard talking about AI these days. I feel there's a lot
to say, but at the same time, the internet is flooded and maybe saturated with
this topic. For the purpose of this small guide, let's keep it simple.&lt;/p&gt;
&lt;p&gt;In 2026 it is expected that software engineers have a good understanding about
AI, a two-letter word that carries a lot of weight. You don't need to master everything,
that would be crazy. But if you're coming from the old days, or just don't want
to follow the bubble, you should at least be able to code, or rather, guide
agents to do the coding, while you do the engineering, orchestration, and
architecture.&lt;/p&gt;
&lt;p&gt;AI agents are fast, and somewhat cheap (debatable). As engineers, we're not
supposed to be coding anymore, instead, we provide LLMs with a good environment, also
called harness, to do the job. This is what I'll be showing you here.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="getting-started"&gt;
&lt;h3&gt;getting started&lt;/h3&gt;
&lt;p&gt;Let me be direct. Getting started is simple, all you need is to run the
following command on your terminal. Oh, this needs &lt;strong&gt;node&lt;/strong&gt; and &lt;strong&gt;npm&lt;/strong&gt;, in case you
don't have them, follow this guide: &lt;a class="reference external" href="https://dev-station.tech/install-npm-and-nodejs/"&gt;https://dev-station.tech/install-npm-and-nodejs/&lt;/a&gt;&lt;/p&gt;

&lt;pre class="brush: bash"&gt;
npx skills@latest add mattpocock/skills
&lt;/pre&gt;

&lt;p&gt;The above command will ask you to agree to the package installation, type &lt;strong&gt;y&lt;/strong&gt; if
you agree. I expect you will.&lt;/p&gt;
&lt;p&gt;Then you will be provided a list of skills to be installed. There's a lot. The
skills selection can vary depending on your usage, daily workflow, and team size.
For example, If you work with Jira or GitHub, if you have a more structured
workflow on your team, or work alone.&lt;/p&gt;
&lt;p&gt;I won't go over all the skills, it's a lot and they get updated often. For this,
you should read Matt's page directly, here: &lt;a class="reference external" href="https://aihero.dev/skills"&gt;https://aihero.dev/skills&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then it'll prompt you the target agents, such as OpenAI, Codex, Claude Code,
Crush and so on. Choose the ones you use.&lt;/p&gt;
&lt;p&gt;Then it'll ask you &lt;strong&gt;where to install the skills&lt;/strong&gt;. This step is important. Choose
your user directory if only are the sole user. In another words, if you need to run
cloud agents that will clone the repo on the run, you might choose installing inside
the repo, so the skills get visible for sandboxed agents.&lt;/p&gt;
&lt;p&gt;That's it. The skills are in place. We're ready to move on to the next step. Now,
let me share which ones I use.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="which-skills-i-use"&gt;
&lt;h3&gt;which skills I use&lt;/h3&gt;
&lt;p&gt;Disclaimer: these skills and usage are for my personal projects, solo learning
and research work. At work I have a different workflow,
similar, but not quite as it is presented here.&lt;/p&gt;
&lt;p&gt;In general, I follow these simple steps:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Grill a feature, change or bug fix. This step includes scanning the repo,
confirming assumptions, and clarifying any questions that come up when
cross-referencing the idea against the repo's current state. Usually it involves
handling trade-offs and making decisions.&lt;/li&gt;
&lt;li&gt;Then I ask for a ticket (Jira, GitHub issue, or spec MD file). I always run
these two steps in the same context window. All technical notes, findings,
and relevant information should be persisted to another agent later.&lt;/li&gt;
&lt;li&gt;In a new context window (use /new or /clear or equivalent), I ask for the
implementation based in the ticket description. The context change is key
here, since agents tend to produce slop in long contexts.&lt;/li&gt;
&lt;li&gt;Also in the same context as the above, I ask for the PR. Here, I like to
ask for QA steps. This is crucial for me, because AI sometimes makes mistakes
and by QA'ing is how I catch bugs.&lt;/li&gt;
&lt;li&gt;In a new context again, I ask for the review. The new context matters here
because the agent can get biased, and there's the slop problem for long
running sessions. But I'll be honest. I only ask for review for big changes.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So in order, I use these skills:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;grill-with-docs - &lt;a class="reference external" href="https://aihero.dev/skills-grill-with-docs"&gt;https://aihero.dev/skills-grill-with-docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;to-tickets - &lt;a class="reference external" href="https://aihero.dev/skills-to-tickets"&gt;https://aihero.dev/skills-to-tickets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;implement - &lt;a class="reference external" href="https://aihero.dev/skills-implement"&gt;https://aihero.dev/skills-implement&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;code-review - &lt;a class="reference external" href="https://aihero.dev/skills-code-review"&gt;https://aihero.dev/skills-code-review&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All these are part of what Matt Pocock calls &lt;strong&gt;The Main Flow&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This is what I wanted to share today. If you have questions or comments,
use the section below and share your thoughts. I'd love to read them.&lt;/p&gt;
&lt;p&gt;That's all for today. Until next time.&lt;/p&gt;
&lt;/div&gt;
</content></entry><entry><title>Monthly updates - Oct 2026</title><link href="https://thermcampos.blog/post/oct-2026-updates/" rel="alternate"/><published>2026-10-23T17:36:01Z</published><updated>2026-10-23T17:36:01Z</updated><author><name>R. Campos</name><email>ricardocampos@gmail.com</email></author><id>/post/oct-2026-updates/</id><summary type="html">&lt;!-- tags: updates --&gt;
&lt;img alt="/attachments/monthly-updates-oct-2026-header.png" src="/attachments/monthly-updates-oct-2026-header.png" /&gt;
&lt;p&gt;Hello hello! October is coming to its end, which is mostly fine, I guess. This
means we're getting closer to Christmas, which is always nice. This also means
holidays =D&lt;/p&gt;
&lt;p&gt;At work I got assigned to a new team and project. The project requires
heavy usage of LLMs, fetching data from the internet, parsing it, and storing it
in internal databases and buckets.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: updates --&gt;
&lt;img alt="/attachments/monthly-updates-oct-2026-header.png" src="/attachments/monthly-updates-oct-2026-header.png" /&gt;
&lt;p&gt;Hello hello! October is coming to its end, which is mostly fine, I guess. This
means we're getting closer to Christmas, which is always nice. This also means
holidays =D&lt;/p&gt;
&lt;p&gt;At work I got assigned to a new team and project. The project requires
heavy usage of LLMs, fetching data from the internet, parsing it, and storing it
in internal databases and buckets.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;p&gt;There are several challenges in this project. The first one for me is
validating the data, checking its accuracy, and learning how to work with
llama-parse and Python scripts. But I'm also learning a lot. Let's keep moving.&lt;/p&gt;
&lt;p&gt;Outside work, I might have something to share. I'm getting ready to kick off
a video format of these posts, on YouTube. I'm excited because videos can
provide visual content, and I'll be able to share my screen and demo a bit of
the work that I'm talking about in the post. It'll be a nice way to provide
more information.&lt;/p&gt;
&lt;p&gt;Find the channel here. Stay tuned, the first video may arrive any time: &lt;a class="reference external" href="https://www.youtube.com/&amp;#64;thermcampos"&gt;https://www.youtube.com/&amp;#64;thermcampos&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Oh, one more thing. I'm coming back to Instagram, if you're on that network,
consider following me there. I share about coffee, reflections, and a bit of
personal life.&lt;/p&gt;
&lt;p&gt;Here you go: &lt;a class="reference external" href="https://www.instagram.com/thermcampos"&gt;https://www.instagram.com/thermcampos&lt;/a&gt;&lt;/p&gt;
&lt;div class="section" id="recommendations"&gt;
&lt;h3&gt;recommendations&lt;/h3&gt;
&lt;p&gt;Well, I'm sorry, but I have no recommendations this time. I've been busy, and
nothing caught my attention these days, besides the security breaches in PHP
and an LLM model.&lt;/p&gt;
&lt;p&gt;Actually, I have one: how about contributing to open source? Have you ever
considered it? This is a great way of learning, meeting new people, and building
a portfolio.&lt;/p&gt;
&lt;p&gt;Traditionally October is known for the &lt;strong&gt;Hacktoberfest&lt;/strong&gt;, which motivates and
gives prizes for people contributing to open source projects through PRs. This
year (2026) it's focused on AI of course. Find more about it here:
&lt;a class="reference external" href="https://hacktoberfest.com/"&gt;https://hacktoberfest.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had no time to dig into the AI challenges, but instead I was able to get
some PRs opened.&lt;/p&gt;
&lt;p&gt;That's all for today. Thanks for reading.&lt;/p&gt;
&lt;/div&gt;
</content></entry><entry><title>The benefits of leetcode</title><link href="https://thermcampos.blog/post/leet-code-routine/" rel="alternate"/><published>2026-10-22T11:40:11Z</published><updated>2026-10-22T11:40:11Z</updated><author><name>R. Campos</name><email>ricardompcampos@gmail.com</email></author><id>/post/leet-code-routine/</id><summary type="html">&lt;!-- tags: leetcode --&gt;
&lt;!-- date: 2026-10-22 11:40:11 --&gt;
&lt;img alt="/attachments/the-benefits-of-leetcode-header.png" src="/attachments/the-benefits-of-leetcode-header.png" /&gt;
&lt;p&gt;Hello everyone! This time I'm here to invite you, and perhaps introduce you,
to the amazing and scaring world of leet code. In case you're not familiar
with it, leet code are code challenges where you need to write the solution
and submit it for validation against a set of scenarios. It comes with
constraints and a specific situation describing the problem, and the task is
to write a function or piece of code that solves the problem and gives the
answer for the problem.&lt;/p&gt;
&lt;p&gt;The main difficulty usually lives in two areas, understanding the problem, and
putting the solution into an algorithm. There are levels for these challenges,
it can be easy, medium, or hard. Now that you know what I'm talking about, let
me tell you why it's a great idea sticking to solving one of these every week.&lt;/p&gt;
&lt;p&gt;In short, it teaches you how to think in steps. How to break down big problems
into smaller steps. This is particularly interesting because that's what we do
on our daily-basis. It helps getting a real problem, a product bug or feature,
and shape it in steps, solvable, repeatable, and predictable. But there's more,
stick with me.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: leetcode --&gt;
&lt;!-- date: 2026-10-22 11:40:11 --&gt;
&lt;img alt="/attachments/the-benefits-of-leetcode-header.png" src="/attachments/the-benefits-of-leetcode-header.png" /&gt;
&lt;p&gt;Hello everyone! This time I'm here to invite you, and perhaps introduce you,
to the amazing and scaring world of leet code. In case you're not familiar
with it, leet code are code challenges where you need to write the solution
and submit it for validation against a set of scenarios. It comes with
constraints and a specific situation describing the problem, and the task is
to write a function or piece of code that solves the problem and gives the
answer for the problem.&lt;/p&gt;
&lt;p&gt;The main difficulty usually lives in two areas, understanding the problem, and
putting the solution into an algorithm. There are levels for these challenges,
it can be easy, medium, or hard. Now that you know what I'm talking about, let
me tell you why it's a great idea sticking to solving one of these every week.&lt;/p&gt;
&lt;p&gt;In short, it teaches you how to think in steps. How to break down big problems
into smaller steps. This is particularly interesting because that's what we do
on our daily-basis. It helps getting a real problem, a product bug or feature,
and shape it in steps, solvable, repeatable, and predictable. But there's more,
stick with me.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;div class="section" id="the-real-gain"&gt;
&lt;h3&gt;The real gain&lt;/h3&gt;
&lt;p&gt;As engineers we need to think straight, logically. We need to find and build
solutions on our head, &lt;em&gt;visualizing them first&lt;/em&gt;. That is, when we're able to
understand the problem, and describe the solution steps, we're done. Nothing
else is needed. At this point, we only need to write it down, write the code
onto the IDE, or ask an LLM to do it. The hardest part, like I said, it
&lt;em&gt;seeing&lt;/em&gt; the solution in our head.&lt;/p&gt;
&lt;p&gt;Another huge win is that it helps keeping our mind sharp. Many of us, myself
included, needs to get back to coding and be close to solution all the time,
since in this crazy AI era people are delegating not only code, but also
thinking. Don't do that. Take 15 or 20 minutes of your day, and go for a
leet code challenge.&lt;/p&gt;
&lt;p&gt;Once you see your code approved, the green check is there, and the solution
works, it feel good. It just feels very good. I'd say it's as good as
seeing an approved PR and all its pipelines passing. Anyways.
The point is that you'd get more confident and happy. This goes straight
against thoughts like&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'm a fraud&lt;/p&gt;
&lt;p class="attribution"&gt;&amp;mdash;Almost every developer at any point.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Start with the easy ones, there are many. Then, when feeling ready, go for
a medium one. These aren't impossible problems, they only need a bit of
thinking. Thank me later.&lt;/p&gt;
&lt;p&gt;There are many platforms where you can do it online, using an online IDE.
The most known one is for sure &lt;a class="reference external" href="https://leetcode.com/"&gt;LeetCode&lt;/a&gt;, but I also strong recommend
&lt;a class="reference external" href="https://www.hackerrank.com/domains/algorithms"&gt;HackerRank&lt;/a&gt; algorithms path, it's really worth it.&lt;/p&gt;
&lt;p&gt;That's all for this time. Feel free to share your thoughts using the comments
section below, or get in touch (see the about page).&lt;/p&gt;
&lt;p&gt;o/&lt;/p&gt;
&lt;!-- author: R. Campos &lt;ricardompcampos@gmail.com&gt; --&gt;
&lt;/div&gt;
</content></entry><entry><title>Javalin the lightweight java framework</title><link href="https://thermcampos.blog/post/javalin-java-framework/" rel="alternate"/><published>2026-10-01T18:15:11Z</published><updated>2026-10-01T18:15:11Z</updated><author><name>R. Campos</name><email>ricardompcampos@gmail.com</email></author><id>/post/javalin-java-framework/</id><summary type="html">&lt;!-- tags: java --&gt;
&lt;!-- date: 2026-10-01 18:15:11 --&gt;
&lt;img alt="/attachments/javalin-the-lightweight-java-framework-header.png" src="/attachments/javalin-the-lightweight-java-framework-header.png" /&gt;
&lt;p&gt;I'd like to introduce you all to &lt;a class="reference external" href="https://javalin.io/"&gt;Javalin&lt;/a&gt;. Java is known for being heavy and
bloated, verbose, often flagged as bad choice for cold-start functions, or
simple MVPs or POCs. Often because it's slow, or memory-heavy consumer, which
I could agree with, on some situations.&lt;/p&gt;
&lt;p&gt;This is specially interesting if you're coming from languages such as Go or
Typescript and is already familiar with express.js or chi from Golang. The
learning curve for a full Java backend app will be pretty smooth.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: java --&gt;
&lt;!-- date: 2026-10-01 18:15:11 --&gt;
&lt;img alt="/attachments/javalin-the-lightweight-java-framework-header.png" src="/attachments/javalin-the-lightweight-java-framework-header.png" /&gt;
&lt;p&gt;I'd like to introduce you all to &lt;a class="reference external" href="https://javalin.io/"&gt;Javalin&lt;/a&gt;. Java is known for being heavy and
bloated, verbose, often flagged as bad choice for cold-start functions, or
simple MVPs or POCs. Often because it's slow, or memory-heavy consumer, which
I could agree with, on some situations.&lt;/p&gt;
&lt;p&gt;This is specially interesting if you're coming from languages such as Go or
Typescript and is already familiar with express.js or chi from Golang. The
learning curve for a full Java backend app will be pretty smooth.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;p&gt;Let's cut to the chase, no rambling, no time spent. Javalin is simple,
lightweight, interoperable, flexible, supports OpenAPI and runs on
top of Jetty JVM web-server, that includes SSL and HTTP3.&lt;/p&gt;
&lt;p&gt;Here's what a Hello World would look like, if you're curious.&lt;/p&gt;

&lt;pre class="brush: java"&gt;
import io.javalin.Javalin;

void main() {
  var app = Javalin.create(config -&gt; {
    config.routes.get("/", ctx -&gt; ctx.result("Hello World"));
  }).start(7070);
}
&lt;/pre&gt;

&lt;p&gt;And that's it! No &lt;em&gt;annotations&lt;/em&gt; needed, controllers, or any of the boilerplate
that Springs like. As simple as that.&lt;/p&gt;
&lt;p&gt;If you're a &lt;strong&gt;maven&lt;/strong&gt; person, you can get started in the &lt;a class="reference external" href="https://javalin.io/tutorials/maven-setup"&gt;maven-setup page&lt;/a&gt;,
but if you're a &lt;strong&gt;graddle&lt;/strong&gt; person, use the &lt;a class="reference external" href="https://javalin.io/tutorials/gradle-setup"&gt;graddle-setup page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://javalin.io/tutorials/"&gt;On their page&lt;/a&gt; there's plenty of useful tutorials and code snippets, check it
out. And now if you want to go straight to the code, find their GitHub repo at:
&lt;a class="reference external" href="https://github.com/javalin/javalin"&gt;https://github.com/javalin/javalin&lt;/a&gt;&lt;/p&gt;
&lt;div class="section" id="native-build"&gt;
&lt;h3&gt;Native build&lt;/h3&gt;
&lt;p&gt;Javalin supports GraalVM. GraalVM builds are OS-native binaries, compiled
into full executable apps that can run without the JVM. This is super attractive
for Serverless and functions that needs cold-start within seconds.&lt;/p&gt;
&lt;p&gt;Here's an example from their main page:
&lt;a class="reference external" href="https://javalin.io/2018/09/27/javalin-graalvm-example.html"&gt;https://javalin.io/2018/09/27/javalin-graalvm-example.html&lt;/a&gt; and if you want
something more complete, including tests, Flyway migrations, and more, you can
take a look at this personal project I'm building:
&lt;a class="reference external" href="https://github.com/thermcampos/lin-order-java"&gt;https://github.com/thermcampos/lin-order-java&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="javalin-x-spring-boot"&gt;
&lt;h3&gt;Javalin x Spring Boot&lt;/h3&gt;
&lt;p&gt;I compared bundle size, dependencies, startup time, and JVM memory on both. The
results are very interesting.&lt;/p&gt;
&lt;p&gt;Both applications has the same added dependencies, same endpoints, and the same
functions. They have Postgres database support and Flyway migration, added
on top of the &lt;em&gt;empty&lt;/em&gt; project. For Spring Boot, I got it from the Spring
initializer page, and for Javalin, I got from the maven quickstart archetype.&lt;/p&gt;
&lt;p&gt;In terms of endpoints, both have only:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;An index &lt;strong&gt;/&lt;/strong&gt; that returns &lt;strong&gt;Hello World&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;A hello &lt;strong&gt;/hello/{name}&lt;/strong&gt; that returns &lt;strong&gt;Hello {name}&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And here are the results.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Bundle size - This is the fatjar&lt;ul&gt;
&lt;li&gt;Javalin size was &lt;strong&gt;9.4 MB&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Spring Boot size was &lt;strong&gt;23 MB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Dependencies - Considering only runtime&lt;ul&gt;
&lt;li&gt;Javalin had &lt;strong&gt;44&lt;/strong&gt; dependencies&lt;/li&gt;
&lt;li&gt;Spring Boot had &lt;strong&gt;53&lt;/strong&gt; dependencies&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Startup time&lt;ul&gt;
&lt;li&gt;Javalin took &lt;strong&gt;0.548&lt;/strong&gt; seconds&lt;/li&gt;
&lt;li&gt;Spring Boot &lt;strong&gt;5.229&lt;/strong&gt; seconds&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Memory footprint using JVM&lt;ul&gt;
&lt;li&gt;Javalin took 144320 KB, about &lt;strong&gt;140 MB&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Spring Boot took 205892, about &lt;strong&gt;201 MB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Javalin startup screenshot&lt;/p&gt;
&lt;img alt="/attachments/javalin-startup.png" src="/attachments/javalin-startup.png" /&gt;
&lt;p&gt;Spring Boot startp screenshot&lt;/p&gt;
&lt;img alt="/attachments/spring-startup.png" src="/attachments/spring-startup.png" /&gt;
&lt;p&gt;This gives us a good perspective about frameworks. Depending of your needs,
of course, Javalin can give you a lightweight working app. Unless you need
Spring Boot's out-of-the-box ready features.&lt;/p&gt;
&lt;p&gt;That's all for today. If you have any questions, I'll be happy to answer. Reach
out by using the comment system below or any of the link in the about page.&lt;/p&gt;
&lt;p&gt;This post will get a video version on YouTube, stay tuned and keep an eye at
this channel: &lt;a class="reference external" href="https://www.youtube.com/&amp;#64;thermcampos"&gt;https://www.youtube.com/&amp;#64;thermcampos&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for reading.&lt;/p&gt;
&lt;/div&gt;
</content></entry><entry><title>LLVM on Gentoo with a minimal initramfs</title><link href="https://thermcampos.blog/post/minimal-initramfs-script/" rel="alternate"/><published>2026-09-10T12:59:27Z</published><updated>2026-09-10T12:59:27Z</updated><author><name>R. Campos</name><email>ricardompcampos@gmail.com</email></author><id>/post/minimal-initramfs-script/</id><summary type="html">&lt;!-- tags: linux,kernel --&gt;
&lt;img alt="/attachments/llvm-on-gentoo-with-a-minimal-initramfs-header.png" src="/attachments/llvm-on-gentoo-with-a-minimal-initramfs-header.png" /&gt;
&lt;p&gt;After several years having Debian as my main Linux &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Linux_distribution"&gt;distro&lt;/a&gt;, I've decided to go
back to &lt;a class="reference external" href="https://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;, the distro who caught my attention since day one. However, my
root partition was encrypted. While Debian has an out-of-the-box solution that
makes everyone's life easier and almost transparent, Gentoo goes the opposite
way. &lt;em&gt;You&lt;/em&gt; have to connect the dots and make it work &lt;em&gt;yourself&lt;/em&gt;, in this case,
&lt;em&gt;myself&lt;/em&gt;. I had to stop, plan for a moment, and get ready. So I had to find a
way to make it work without dropping my encrypted partition.&lt;/p&gt;
&lt;p&gt;In this short post, I'll be sharing the steps I took, the shell scripts,
and how I wired up a minimal init script, that I called &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Initial_ramdisk"&gt;initramfs&lt;/a&gt;, although
it's not quite that, this is much smaller and single purposed, decrypt my
root partition.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: linux,kernel --&gt;
&lt;img alt="/attachments/llvm-on-gentoo-with-a-minimal-initramfs-header.png" src="/attachments/llvm-on-gentoo-with-a-minimal-initramfs-header.png" /&gt;
&lt;p&gt;After several years having Debian as my main Linux &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Linux_distribution"&gt;distro&lt;/a&gt;, I've decided to go
back to &lt;a class="reference external" href="https://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;, the distro who caught my attention since day one. However, my
root partition was encrypted. While Debian has an out-of-the-box solution that
makes everyone's life easier and almost transparent, Gentoo goes the opposite
way. &lt;em&gt;You&lt;/em&gt; have to connect the dots and make it work &lt;em&gt;yourself&lt;/em&gt;, in this case,
&lt;em&gt;myself&lt;/em&gt;. I had to stop, plan for a moment, and get ready. So I had to find a
way to make it work without dropping my encrypted partition.&lt;/p&gt;
&lt;p&gt;In this short post, I'll be sharing the steps I took, the shell scripts,
and how I wired up a minimal init script, that I called &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Initial_ramdisk"&gt;initramfs&lt;/a&gt;, although
it's not quite that, this is much smaller and single purposed, decrypt my
root partition.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;p&gt;Long story short, I needed to find a way to decrypt, mount and boot my new OS
having the root partition encrypted. Using Gentoo's live-cd I was able to
try the script partially, and confirm the decryption works. All I needed was
having a busybox environment with all crypt libs on it. Using Gentoo itself
for that, I compiled some packages with &lt;strong&gt;static linked&lt;/strong&gt; dependencies.&lt;/p&gt;
&lt;p&gt;Then build the initial script that's going to do all the heavy-lifting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;, here are the scripts:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Create the initramfs directory, embed busybox and the crypt libs and tools on it&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="brush: bash"&gt;
#!/bin/sh
set -e
STAGE="${1:-/usr/src/initramfs}"

mkdir -p "$STAGE"/{bin,sbin,lib,dev,proc,sys,mnt/root,run}

cp /sbin/busybox "$STAGE/bin/"
"$STAGE/bin/busybox" --install -s "$STAGE/bin"

cp /sbin/cryptsetup "$STAGE/sbin/"
cp /sbin/lvm "$STAGE/sbin/"

for bin in /sbin/cryptsetup /sbin/lvm; do
    ldd "$bin" | awk '{print $3}' | grep -v '^$'
done | sort -u | while read -r lib; do
    mkdir -p "$STAGE$(dirname "$lib")"
    cp -L "$lib" "$STAGE$lib"
done

cp init "$STAGE/init"
chmod +x "$STAGE/init"

echo "Staged tree ready at $STAGE — cd there and run the cpio|gzip packaging step."
&lt;/pre&gt;

&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;create the &lt;em&gt;init&lt;/em&gt; script (it needs to be called only init) at /usr/src/initramfs&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="brush: bash"&gt;
#!/bin/sh

rescue_shell() {
    echo "Something went wrong v3. Dropping to a shell."
    exec /bin/sh
}

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev
mkdir -p /run/cryptsetup
export DM_DISABLE_UDEV=1

ROOT=$(sed -n 's/.*\broot=\([^ ]*\).*/\1/p' /proc/cmdline)

cryptsetup luksOpen /dev/nvme0n1p3 gentoo_root || rescue_shell
lvm vgchange -ay || rescue_shell

mount -o ro "$ROOT" /mnt/root || rescue_shell

exec switch_root /mnt/root /sbin/init
&lt;/pre&gt;

&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Finally generate the image that goes to /boot and grub&lt;/li&gt;
&lt;/ul&gt;

&lt;pre class="brush: bash"&gt;
#!/bin/bash

KERNEL="7.2.4-gentoo"

cd /usr/src/initramfs

find . | cpio -o -H newc | gzip &gt; /boot/initramfs-$KERNEL.img

grub-mkconfig -o /boot/grub/grub.cfg
&lt;/pre&gt;

&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Done. With luck, you should have a minimal setup ready to decrypt and boot
your OS. Feel free to get in touch and ask for help, if needed. I have these
scripts versioned on my personal repo, find then here: &lt;a class="reference external" href="https://github.com/thermcampos/gentoo-config-files/tree/main/kernel"&gt;https://github.com/thermcampos/gentoo-config-files/tree/main/kernel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That's all. Thanks for reading.&lt;/p&gt;
</content></entry><entry><title>Monthly updates - Sep 2026</title><link href="https://thermcampos.blog/post/sep-2026-updates/" rel="alternate"/><published>2026-09-08T17:50:18Z</published><updated>2026-09-08T17:50:18Z</updated><author><name>R. Campos</name><email>ricardompcampos@gmail.com</email></author><id>/post/sep-2026-updates/</id><summary type="html">&lt;!-- tags: updates,recommendations --&gt;
&lt;img alt="/attachments/monthly-updates-sep-2026-header.png" src="/attachments/monthly-updates-sep-2026-header.png" /&gt;
&lt;p&gt;September has just started and is already flying away, going by light-speed
fast! Christmas is almost knocking on the door. But I'm here to talk about
updates and what's going on recently. Let's dive in!&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: updates,recommendations --&gt;
&lt;img alt="/attachments/monthly-updates-sep-2026-header.png" src="/attachments/monthly-updates-sep-2026-header.png" /&gt;
&lt;p&gt;September has just started and is already flying away, going by light-speed
fast! Christmas is almost knocking on the door. But I'm here to talk about
updates and what's going on recently. Let's dive in!&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;div class="section" id="hybrid-work"&gt;
&lt;h3&gt;hybrid work&lt;/h3&gt;
&lt;p&gt;I decided (not entirely by choice) to go regularly to a coworking space near my
apartment. By regularly, I mean at least three times a week. The reasons are
noisy constructions at my building, constructions inside our apartment, and
giving my wife some space. (our apartment is very small, and she's in a
graduate program, needs silence to study).&lt;/p&gt;
&lt;p&gt;I gotta admit, I thought I'd hate, but actually I can see its value now.
Getting out of the house is doing me so much good. I like the walking commute.
The space is on the fourth floor with a nice view, and there's free coffee
included!&lt;/p&gt;
&lt;p&gt;This is unexpected from me because I've been working from home since 2019, 7
years now, and until recently I was strongly refusing to go back to any office.
But here I am, and I'm pretty happy. Anyways, let's see what the recommendations
section brought this time.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="recommendations"&gt;
&lt;h3&gt;recommendations&lt;/h3&gt;
&lt;p&gt;Along with updates, I'd like to share findings that caught my attention. They
might be useful, handy, entertaining. you judge.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;I'd like to kick off with &lt;a class="reference external" href="https://cassidoo.co/"&gt;Cassidy Williams&lt;/a&gt;. She's a Senior
Director of Developer Advocacy at GitHub and keeps a newsletter that's so
well-curated, it'd be a sin not to share it. You can have a &lt;a class="reference external" href="https://buttondown.com/cassidoo/archive"&gt;glance at it here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If you are in the AI world, &lt;a class="reference external" href="https://www.devthusiast.com/"&gt;Devthusiast&lt;/a&gt; might interest you. This newsletter
covers what's happening and the bleeding-edge tech updates.&lt;/li&gt;
&lt;li&gt;Now if you're into AI and also into software engineering, take a look at
&lt;a class="reference external" href="https://github.com/mattpocock/skills"&gt;Matt Pocock's skillset&lt;/a&gt; to go the opposite way of &lt;em&gt;vibe-coders&lt;/em&gt;. Matt shared a &lt;a class="reference external" href="https://www.youtube.com/watch?v=M6mYodf0dJM"&gt;YouTube Video&lt;/a&gt; with
first steps and how to get started.&lt;/li&gt;
&lt;li&gt;On the frontend and UI/UX side, there's a great article that went around the internet
in the last few weeks about what would be the best dark mode toggle. Very
interesting discussion. &lt;a class="reference external" href="https://lea.verou.me/blog/2026/dark-mode-toggles-2/"&gt;Read it here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's all for today! Thanks for reading. If you like this content, you might consider
subscribing via RSS to this category: &lt;a class="reference external" href="/atom/updates/"&gt;use this URL&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</content></entry><entry><title>Hello World</title><link href="https://thermcampos.blog/post/print-hello-world/" rel="alternate"/><published>2026-08-24T19:59:46Z</published><updated>2026-08-24T19:59:46Z</updated><author><name>R. Campos</name><email>ricardompcampos@gmail.com</email></author><id>/post/print-hello-world/</id><summary type="html">&lt;!-- tags: updates --&gt;
&lt;img alt="/attachments/hello-world-header.png" src="/attachments/hello-world-header.png" /&gt;
&lt;p&gt;Welcome to the very first post. Long time ago (2011-2013) I use to write to a
personal blog like this, then life got busy, and all faded away. I must say I
tried writing here and there some of my technical discoveries and helping
content, but never actually found a nice place where personal thoughts fit
nicely along with tech findings.&lt;/p&gt;
</summary><content type="html">&lt;!-- tags: updates --&gt;
&lt;img alt="/attachments/hello-world-header.png" src="/attachments/hello-world-header.png" /&gt;
&lt;p&gt;Welcome to the very first post. Long time ago (2011-2013) I use to write to a
personal blog like this, then life got busy, and all faded away. I must say I
tried writing here and there some of my technical discoveries and helping
content, but never actually found a nice place where personal thoughts fit
nicely along with tech findings.&lt;/p&gt;
&lt;!-- read_more --&gt;
&lt;p&gt;In the past few days I decided to go back to Gentoo, after more or less 7
years using Debian Sid (the only truly rolling release Debian flavor), and
that brought a lot of memories. And blogging was one of them. So I decided
to re-write and bring back to life the old Blohg engine, a lightweight python
Flask app that uses git as back-end and Jinja2 to render templates.&lt;/p&gt;
&lt;p&gt;I also decided to get back to IRC, where I spent a lot of time in the past
chatting with friends about Linux. But the old server is gone, Freenode.
Now the common choice seems to be Libera. If you're in there too, ping me
anytime, just search for my handler &lt;strong&gt;thermcampos&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="section" id="there-s-more"&gt;
&lt;h3&gt;there's more&lt;/h3&gt;
&lt;p&gt;Another reason that helped me decide having a personal blog again was a post
that I can't find right now (sorry) saying that many people don't write
because they think the content will be the same as other people, but there's
a gotcha, even though is the same content as the other people, it is your
content with your words. Then bum! That was enough. And here I am. Here we
are.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Comments will come soon. In the meanwhile, feel free to ping me and chat
using any of the options in the /contact page.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Update: comments are ready! And if you like a video format, this is what
you can find at &lt;a class="reference external" href="https://www.youtube.com/&amp;#64;thermcampos"&gt;https://www.youtube.com/&amp;#64;thermcampos&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here the video for this post:&lt;/p&gt;
&lt;iframe allowfullscreen="true" class="align-center" frameborder="0" src="http://www.youtube.com/embed/kjKiTaqzf-U" style="width: 622px; height: 350px;"&gt;&lt;/iframe&gt;
&lt;p&gt;Bye for now.&lt;/p&gt;
&lt;p&gt;o/&lt;/p&gt;
&lt;!-- author: R. Campos &lt;ricardompcampos@gmail.com&gt; --&gt;
&lt;/div&gt;
</content></entry></feed>