Skip to content

Instantly share code, notes, and snippets.

View petomalina's full-sized avatar
🚀

Peter Malina petomalina

🚀
  • kiwi.com
  • London, UK
View GitHub Profile
@petomalina
petomalina / cloudbuild.yaml
Created August 9, 2018 20:44
Accelerating golang CI builds with GOCACHE and Cloud Storage
steps:
- name: gcr.io/cloud-builders/gsutil
args: ['-m', '-q', 'cp', 'gs://your-caching-bucket/cache.tar.gz', '/workspace']
- name: ubuntu
entrypoint: '/bin/bash'
args: ['-c', 'tar -xf cache.tar.gz']
- name: ubuntu
entrypoint: '/bin/bash'
args: ['-c', 'mkdir bin']
- name: golang:rc
@petomalina
petomalina / readme.md
Last active March 21, 2017 12:32
Introduction to gRPC - Peter Malina - FlowUp

Abstract

We are gonna talk about gRPC - the high performance RPC framework released by Google. Microservice architectures often come with a pain in deployment and testing. This talk is focused on building microservice architectures that are easily testable and deployable using gRPC and Go.

About Me

I am a CTO at software development company called FlowUp based in Brno. I am mainly focused on building scalable systems using Golang and Angular, always looking forward to experiment with new tech (which is why people love/hate me).

@petomalina
petomalina / operations.go
Created July 24, 2016 14:31
Map, Filter and Reduce above collection of T in Golang
package operations
type T struct {
Code int
}
type TSequence []*T
type TMapFunc func(t *T) *T
type TFilterFunc func(t *T) bool
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@petomalina
petomalina / 1.json
Created February 9, 2016 09:41
Test data for the static map generation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@petomalina
petomalina / core_response.go
Last active January 24, 2016 08:45
[Golang] MongoDB REST controller snippet for atom
import (
"encoding/json"
"net/http"
)
// SendJSON will write the response with the OK
// http code
func SendJSON(obj interface{}, w http.ResponseWriter) error {
return SendJSONCode(http.StatusOK, obj, w)
}
@petomalina
petomalina / buscall.go
Created May 27, 2015 18:03
Example call of service from go-systemd
package bus
/*
Libraries: go-systemd, godbus
Files: unit file in your systemd services location (.service)
*/
import (
"fmt"