This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Define target repositories | |
| REPOS=("algolia/python" "algolia/go") | |
| echo "🔍 Listing open PRs with review requested for you or your team..." | |
| for REPO in "${REPOS[@]}"; do | |
| echo -e "\n📦 Repository: $REPO" |
Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.
- List the topics to which the group is subscribed
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describeNote 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.
- Reset the consumer offset for a topic (preview)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyPDF2 import PdfFileReader, PdfFileWriter | |
| from PyPDF2.pdf import ContentStream | |
| from PyPDF2.generic import TextStringObject, NameObject | |
| from PyPDF2.utils import b_ | |
| wm_text = 'Persönliches Exemplar von' | |
| replace_with = '' | |
| # Load PDF into pyPDF | |
| source = PdfFileReader(open('input.pdf', "rb")) |