Skip to content

Instantly share code, notes, and snippets.

@cinhtau
cinhtau / kafka-playbook.yml
Last active April 28, 2022 22:50
Ansible playbook to start a minimum HA Apache Kafka + ZooKeeper cluster of 3 nodes with docker containers, on host 1 Kafka Manager is started
# playbook for Apache Kafka deployment
# with docker containers
---
- hosts: all
vars:
ids:
host01: 1
host02: 2
host03: 3
func main() {
// STEP 1, STEP 2, STEP 3
// ...
// Start the server in a child routine
go func() {
if err := s.Serve(listener); err != nil {
log.Fatalf("Failed to serve: %v", err)
}
}()
package mw
import (
"fmt"
"net/http"
"time"
)
type Logger struct{}
@ilyar
ilyar / use-daedalus-socket-cardano-cli.sh
Last active February 21, 2023 09:27
Use Daedalus socket for cardano-cli for Mainnet or Testnet the Cardano
#!/usr/bin/env bash
# Install cardano-cli or use docker https://gist.github.com/ilyar/bf4c2346be1a74c50e488181986808fb
#
# Linux https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-linux/latest-finished
# Win64 https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-win64/latest-finished
# Macos https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-macos/latest-finished
# Extcact only cardano-cli into /usr/local/bin/cardano-cli
# Check
cardano-cli --version
@phortuin
phortuin / postgres.md
Last active March 9, 2025 22:22
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql@14

(The version number 14 needs to be explicitly stated. The @ mark designates a version number is specified. If you need an older version of postgres, use postgresql@13, for example.)

@luzfcb
luzfcb / template_LGPD.md
Last active March 20, 2025 12:44
Template LGPD - Template para solicitar exclusão de dados conforme a LGPD - Lei Geral de Proteção de Dados do brasil. LEI Nº 13.709, DE 14 DE AGOSTO DE 2018. Disclaimer: Não sou advogado e não me responsabilizo por qualquer coisa decorrente do uso desde conteudo. Use por sua conta e risco.

Olá <NOME_EMPRESA>.

Vocês estão me enviando <email, ligação, SMS, via plataforma Whatsapp, via plataforma Telegram> comerciais não-solicitados, portanto SPAM.

No dia vocês enviaram ao meu uma mensagem comércial, com o seguinte texto:

<MENSAGEM>