Build or install nghttp2 (optionally with support for the --interval DURATION flag).
Either:
brew install nghttp2Or:
| # Take Hasura migrations from staging and apply them to prod | |
| # Usage: ./migrate.sh "<staging-endpoint>" "<staging-secret>" "<prod-endpoint>" "<prod-secret>" "<migration-name>" | |
| STAGING_ENDPOINT="$1" | |
| STAGING_SECRET="$2" | |
| PROD_ENDPOINT="$3" | |
| PROD_SECRET="$4" | |
| MIGRATION_NAME="$5" |
| use opentelemetry::api::propagation::text_propagator::HttpTextFormat; | |
| use tracing::{debug, info}; | |
| use tracing_futures::Instrument as _; | |
| use tracing_opentelemetry::OpenTelemetrySpanExt as _; | |
| #[tonic::async_trait] | |
| impl crate::protobuf::kubernetes_server::Kubernetes for Service { | |
| async fn kubernetes_deployment_component_get( | |
| &self, | |
| mut request: tonic::Request<crate::protobuf::KubernetesDeploymentComponentGetRequest>, |
| # This file contains the configuration for Credo and you are probably reading | |
| # this after creating it with `mix credo.gen.config`. | |
| # | |
| # If you find anything wrong or unclear in this file, please report an | |
| # issue on GitHub: https://github.com/rrrene/credo/issues | |
| # | |
| %{ | |
| # | |
| # You can have as many configs as you like in the `configs:` field. | |
| configs: [ |
| use actix::prelude::*; | |
| use failure::Fallible; | |
| use rdkafka::{ | |
| consumer::stream_consumer::StreamConsumer, | |
| message::OwnedMessage, | |
| Message, | |
| }; | |
| pub struct MsgConsumer { | |
| consumer: &'static StreamConsumer, |
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::io; | |
| use std::num::ParseFloatError; | |
| use std::rc::Rc; | |
| /* | |
| Types | |
| */ |
Build or install nghttp2 (optionally with support for the --interval DURATION flag).
Either:
brew install nghttp2Or:
| // Suppose you have a variable named `future` which implements the `Future` trait. | |
| let future: impl Future = ...; | |
| // This gist demonstrates how to run the future until completion using the `stdweb` crate. | |
| // The various imports. | |
| extern crate futures; | |
| extern crate stdweb; |
Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.
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.
Edit: This list is now maintained in the rust-anthology repo.
| #!/bin/bash | |
| # This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster. | |
| # Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie | |
| # | |
| # Don't forget to include `:runtime_tools` in your mix.exs application dependencies. | |
| set -e | |
| # Trap exit so we can try to kill proxies that has stuck in background | |
| function cleanup { | |
| echo " - Stopping kubectl proxy." |