This file contains 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
# The MIT License (MIT) | |
# Copyright (c) 2013 Peter M. Elias | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains 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
'use strict'; | |
const kafka = require('node-rdkafka'); | |
const { CODES: { ERRORS: { | |
ERR__ASSIGN_PARTITIONS, | |
ERR__REVOKE_PARTITIONS | |
}}} = kafka; | |
const clientId = 'pelias-test-client'; | |
const groupId = 'pelias-test-cg'; |
This file contains 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
import io.micronaut.data.annotation.MappedEntity; | |
import io.micronaut.data.annotation.Id; | |
import io.micronaut.data.annotation.GeneratedValue; | |
@MappedEntity(value = "hellos") | |
public class HelloEntity { | |
@Id | |
@GeneratedValue | |
private Long id; | |
This file contains 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 bash | |
_out_ext=${1#*.} | |
_out_ext=${_out_ext%%.*} | |
_out="${1%%.*}-chain.${_out_ext}.pfx" | |
_crtfile=combined.crt.pem | |
# _cmd="openssl pkcs12 -export -keypbe NONE -certpbe NONE -nomaciter -passout pass: -out ${_out} -inkey ${2} -in ${1} -certfile ${_crtfile}" | |
_cmd="openssl pkcs12 -export -passout pass: -out ${_out} -inkey ${2} -in ${1} -certfile ${_crtfile}" |