Skip to content

Instantly share code, notes, and snippets.

View jonatan-ivanov's full-sized avatar
🦉

Jonatan Ivanov jonatan-ivanov

🦉
View GitHub Profile

gpg 2.2.9 does not work with keybase keys, install 2.2.8

brew unlink gnupg
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4451447c6a069b0f7ce5d8c88e4da7c4c89fbe52/Formula/gnupg.rb

in order to make gpg work, GPG_TTY needs to be set (.bashrc, .zshrc, etc.):

export GPG_TTY=$(tty)

Keybase proof

I hereby claim:

  • I am jonatan-ivanov on github.
  • I am jonatan_ivanov (https://keybase.io/jonatan_ivanov) on keybase.
  • I have a public key whose fingerprint is E927 5E0D A474 6067 758E B375 BB4A 6DDD 6E2A D69F

To claim this, I am signing this object:

ssh-keygen -t rsa -C "email"

@jonatan-ivanov
jonatan-ivanov / BatchConfiguration.java
Last active May 17, 2020 21:04
spring-batch continuous polling example
@Configuration
@EnableScheduling
@EnableBatchProcessing
public class BatchConfiguration {
@Bean
@StepScope
public ResourceReader reader(
@Value("...") String url,
@Value("...") int pageSize,
@Value("#{jobParameters['ResourceReader.index']}") int index) {
@jonatan-ivanov
jonatan-ivanov / Friday.md
Last active November 19, 2019 22:08
NFJS 2019

4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.2-SNAPSHOT

{
"status": "UP",
"components": {
"discoveryComposite": {
"status": "UP",
"components": {
"discoveryClient": {
"status": "UP",
"details": {
"services": [

Complicated API

  • As a user, it is somewhat complex and quite puzzling using the API
  • There are a lot of components
  • The components are doing different things as I would expect based on their names
  • I think it would worth a review and refactor to make it more usable.

Examples

  • GlobalMetricsProvider
    • Based on its name, it should provide Metrics instances
  • In fact, it provides two things neither of them are Metrics
@jonatan-ivanov
jonatan-ivanov / java-info.md
Last active November 23, 2021 16:21
by popular OpenJDK distributions
adoptopenjdk:11-jre-hotspot
java.runtime.name: OpenJDK Runtime Environment
java.runtime.version: 11.0.11+9
java.vendor: AdoptOpenJDK
java.version: 11.0.11
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.vendor: AdoptOpenJDK
java.vm.version: 11.0.11+9