Skip to content

Instantly share code, notes, and snippets.

View ariebrainware's full-sized avatar
🖥️
Golang, Cloud Computing, Digital Infrastructure

Arie Brainware ariebrainware

🖥️
Golang, Cloud Computing, Digital Infrastructure
View GitHub Profile
@ariebrainware
ariebrainware / protobuf_struct_converter.go
Created March 24, 2022 08:02 — forked from dschowta/protobuf_struct_converter.go
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"
)
@ariebrainware
ariebrainware / postgres.md
Created January 29, 2022 15:02 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql

Run server:

@ariebrainware
ariebrainware / AES.c
Created October 24, 2017 03:21 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>