Skip to content

Instantly share code, notes, and snippets.

View vnay92's full-sized avatar

Vinay Bharadwaj vnay92

  • Sellerworx Online Services Pvt. Ltd
  • India
View GitHub Profile
@dschowta
dschowta / protobuf_struct_converter.go
Created August 6, 2020 05:55
golang: grpc: interface or map type conversion to protobuf struct using protojson .
// Conversion of interface{} or map[string]interface{} types to protobuf struct ("google/protobuf/struct.proto").
package codec
import (
"encoding/json"
structpb "github.com/golang/protobuf/ptypes/struct"
"google.golang.org/protobuf/encoding/protojson"
)
@sdieunidou
sdieunidou / rabbitmq.txt
Created October 22, 2015 19:51
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"