Skip to content

Instantly share code, notes, and snippets.

View bitkill's full-sized avatar
🍉

Rui Fernandes bitkill

🍉
View GitHub Profile
@bitkill
bitkill / ReactiveSQSConfig.java
Created August 22, 2022 14:42
[custom config aws sdk v2 sqs for java] sqs
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
import software.amazon.awssdk.auth.credentials.AwsCredentials;
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
@bitkill
bitkill / .github-workflow-tag-publish.yml
Last active January 31, 2022 12:21
[Gradle lib multimodule] #gradle #lib #github-actions
# location: .github/workflow/tag-publish.yml
name: tag-publish
on:
push:
tags: [ '*' ]
permissions:
id-token: write
@bitkill
bitkill / docker-compose.yml
Created December 29, 2021 13:02
[Local min.io] #min.io #local #s3
version '3.7'
services:
minio:
image: quay.io/minio/minio:latest
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
@bitkill
bitkill / log everything.md
Last active April 29, 2021 18:10
[Quarkus configs]

Log trace resteasy

{
  "QUARKUS_LOG_LEVEL": "TRACE",
  "RESTEASY_ORIGINAL_WEBAPPLICATIONEXCEPTION_BEHAVIOR": "true"
}
@bitkill
bitkill / install.md
Last active May 1, 2021 21:00
[Docker in another machine]

Install docker-machine in your machine

Dependencies

  • wget
  • sshd

Installing

Just google docker CE install.

Using a network machine to serve your containers

@bitkill
bitkill / keybase.md
Created December 3, 2020 09:49
keybase contact

Keybase proof

I hereby claim:

  • I am bitkill on github.
  • I am bitkill (https://keybase.io/bitkill) on keybase.
  • I have a public key ASA4DpV0Dh3Q887kLsuD3h6O0-RIyblG2MBW4SSZUo3JKwo

To claim this, I am signing this object:

@bitkill
bitkill / wait-for-postgres.sh
Last active July 29, 2020 15:02
Wait for a service via tcp
#!/usr/bin/env bash
RETRIES=10
while !</dev/tcp/postgres/5432 & [ $RETRIES -eq 0 ]; do
echo "Waiting for postgres server, $((RETRIES--)) remaining attempts...";
sleep 1;
done;
@bitkill
bitkill / readme.md
Created June 19, 2020 14:09
Gnome boxes ubuntu
sudo apt install virt-manager
sudo systemctl enable libvirtd
sudo systemctl enable virtlogd
sudo systemctl start libvirtd
sudo systemctl start virtlogd
sudo adduser `id -un` kvm
@bitkill
bitkill / readme.md
Created May 27, 2020 18:59
[CentOS Admin]

CentOS Administration

Get all packages that need to be installed in order to have x package

repoquery --requires --resolve --recursive <package>

You can remove recursive to see direct matches

Similar command, but in relation to the current system