Skip to content

Instantly share code, notes, and snippets.

View vepo's full-sized avatar
💻
/bin/bash

Victor Osório vepo

💻
/bin/bash
View GitHub Profile
@vepo
vepo / curl-with-java-keystore.md
Last active March 13, 2024 08:52 — forked from Hakky54/curl-with-java-keystore.md
Curl with Java KeyStore

cURL with Java Keystore/Truststore

Curl doesn't have support for java keystore file, so therefor the file should be converted to a PEM format. It consists of the following multiple steps:

  1. Convert keystore to p12 file
  2. Convert p12 file to pem file
  3. Run curl command with pem files

Convert keystore to p12 file

@vepo
vepo / gist:3f20b433fb266679ee41cca82a0bb328
Created July 20, 2021 18:18 — forked from digitaljhelms/gist:3761873
Git/GitHub commit standards & conventions

Committing Code

General Rules

  • Make atomic commits of changes, even across multiple files, in logical units. That is, as much as possible, each commit should be focused on one specific purpose.
  • As much as possible, make sure a commit does not contain unnecessary whitespace changes. This can be checked as follows:
$ git diff --check

Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.

  1. List the topics to which the group is subscribed
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describe

Note the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.

  1. Reset the consumer offset for a topic (preview)