kafkacat -q -e -b localhost:9092 -t connect-offsets -f '%p#%k\n' | {
while IFS=# read -r partition key; do
# replace connector_name with the actual connector name
if [[ $key =~ '["connector_name",' ]]; then
echo "echo '$key#' | kafkacat -b localhost:9092 -t connect-offsets -P -Z -K# -p $partition" && exit
fi
done
}
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
| #!/usr/bin/env groovy | |
| import groovy.json.JsonSlurper | |
| def (_, owner, repo) = ('git remote get-url origin'.execute().text =~ /\/([^\/]+)\/([^\/]+)$/)[0] | |
| def parentUrl = new JsonSlurper().parse(new URL("https://api.github.com/repos/$owner/$repo")).parent.html_url | |
| "git remote add upstream $parentUrl".execute() |
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
| pk() { | |
| lsof -i :"$1" -s TCP:LISTEN -t | xargs kill | |
| } |
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
| let s = String::from("Hello World!"); | |
| // move == transfering ownership | |
| let t = s; | |
| // mutability of data can be changed when ownership is transferred | |
| let mut u = s; | |
| let mut first_name = String::from("Oliver") | |
| // creating a reference == borrowing | |
| fn own(s: &String) { | |
| println!("{}", s); |
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
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //JAVA 17 | |
| //DEPS info.picocli:picocli:4.6.3 | |
| //DEPS info.picocli:picocli-codegen:4.6.3 | |
| //DEPS hu.webarticum:tree-printer:2.0.0 | |
| //DEPS io.vavr:vavr:0.10.4 | |
| import hu.webarticum.treeprinter.SimpleTreeNode; | |
| import hu.webarticum.treeprinter.TreeNode; | |
| import hu.webarticum.treeprinter.printer.listing.ListingTreePrinter; |
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
| #!/usr/bin/env kotlin | |
| @file:DependsOn("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0") | |
| @file:DependsOn("com.github.ajalt.clikt:clikt-jvm:3.5.0") | |
| @file:DependsOn("eu.jrie.jetbrains:kotlin-shell-core:0.2.1") | |
| import com.fasterxml.jackson.core.JsonGenerator | |
| import com.fasterxml.jackson.core.util.DefaultIndenter | |
| import com.fasterxml.jackson.core.util.DefaultPrettyPrinter | |
| import com.fasterxml.jackson.databind.node.ArrayNode |
ISAQB CPSA-F
Certified Professional for Software Architecture Foundation-Level
- Software Architekturen bewerten zu können
- Vor- und Nachteile von Architekturentscheidungen zu beurteilen
- Architekturentscheidungen effektiv an Stakeholder zu kommunizieren
- Wechselwirkungen von Architekturentscheidungen
OlderNewer