Skip to content

Instantly share code, notes, and snippets.

View alexaugustobr's full-sized avatar
🤔
0x141A140E6

Alex alexaugustobr

🤔
0x141A140E6
View GitHub Profile
@akitaonrails
akitaonrails / makita-news-idea.md
Created February 16, 2026 14:26
A idéia original do newsletter The M.Akita Chronicles (o 1o prompt, de mais de 1000)

Akitando News (codename The M.Akita Chronicles)

I am Fabio Akita, known YouTuber at @Akitando channel. I published videos from the end of 2018 until the beginning of 2024. I also participated in many important Brazilian podcasts such as Flow and Inteligencia LTDA throughout 2024 and 2025. Prior to that I was the former organizer of Rubyconf Brasil from 2008 until 2016. I write at the blog akitaonrails.com since april of 2006 until now. I am also the co-founder of a boutique consultancy in Brazil especialized in team augmentation for USA dev teams called CodeMiner 42.

I am also very active in X.com as @akitaonrails.

Now, I want to try a new project: a Newsletter. This needs to be divided into multiple sub-projects here.

1. AI based Newsletter organizer

import java.util.Objects;
public enum StateType {
CREATED {
@Override
public StateType next(StateType nextState) {
if (Objects.isNull(nextState) || this.equals(nextState)) {
throw new RuntimeException("state %s not allowed for actual state: %s".formatted(nextState, this));
}
@edurbs
edurbs / DomainEntity.java
Last active January 13, 2024 22:56
Validação de números telefone fixo ou móvel (celular) do Brasil
public interface DomainEntity {
public default void validate() {
new EntityValidatorService().validate(this);
}
}
@Mishco
Mishco / content.md
Last active February 18, 2026 18:45
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

@up1
up1 / BaseTests.java
Last active September 1, 2023 20:16
Spring Cloud Contract
@SpringBootTest (classes = ProviderApplication.class)
class BaseTests {
@Autowired
private CustomerRestController customerRestController;
@MockBean
private CustomerRepository customerRepository;
@BeforeEach
@sjohnr
sjohnr / Client.java
Last active October 15, 2022 19:05
JpaRegisteredClientRepository
/*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@DavidCabral
DavidCabral / PixPayload.java
Last active March 18, 2022 19:23
Java PIX estático, geração do QRCODE
/**
* Fonte = https://youtu.be/eO11iFgrdCA
*/
import java.text.DecimalFormat;
public class PixPayload {
private static final String ID_PAYLOAD_FORMAT_INDICATOR = "00";
private static final String ID_POINT_OF_INITIATION_METHOD = "01";
private static final String ID_MERCHANT_ACCOUNT_INFORMATION = "26";
@ramsunvtech
ramsunvtech / nginx-micro-frontend-config.conf
Created January 10, 2021 10:49
Nginx Microfrontend Configuration
server {
ssi on;
proxy_intercept_errors on;
location /product-list {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
@rponte
rponte / using-uuid-as-pk.md
Last active January 19, 2026 17:56
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@ourownstory
ourownstory / encrypted_dual_boot_xps_17.md
Last active December 7, 2025 18:00
Encrypted dual boot setup for Pop!_OS and Windows 10 using LUKS and Bitlocker on Dell XPS 17 9700

Encrypted dual boot setup with Pop!_OS and Windows 10

How to guide, using LUKS and Bitlocker on Dell XPS 17 9700

This guide is for those who want to use their XPS 17 in dual boot with their (preinstalled) Windows 10 and a new Pop!_OS installation, without giving up Bitlocker Encryption in Windows nor LUKS encryption in Linux.

The only guides that I could find were for Ubuntu, which it should be identical to, but I found the ommission of a few steps to resolve issues that I encountered in my first install attempt. Hoping to save you some trouble, I am sharing the steps that worked for me, linking the original guides that I found useful.

1. Preparation

  • 1.1 Of course: Backup all your data! You always do this when people tell you to, right? Maybe this time better be safe than sorry.
  • 1.2 Safely note your Bitlocker recovery key somewhere off your XPS. Where to find it