Skip to content

Instantly share code, notes, and snippets.

View saniales's full-sized avatar
🎧
Focusing

Alessandro Sanino saniales

🎧
Focusing
View GitHub Profile
@saniales
saniales / README.md
Last active February 20, 2022 15:58
Unmarshal UUID in mongo in Go using Mongo Go Driver

Usage

Copy in a separated package called mongoutil the content of the .go file, then use it as follows

import (
  "path/of/mongoutil" 
)

type example struct {
@saniales
saniales / A-Transferwise-Slack-Integration-with-Cloudflare-Workers.md
Last active March 4, 2022 13:24
A TransferWise integration with Slack Webhooks using Cloudflare Workers

TransferWise webhook integration with Slack notifications using Cloudflare Workers

Greetings from the Tryvium Team,

Here is how to integrate a Transferwise webhook with Slack notifications. We have chosen to use cloudflare workers as a perfect case study for serverless applications using cloudflare.

Setting things up

@saniales
saniales / easyjson_optimization.sh
Last active January 20, 2019 20:55
Example of optimizing generated goadesign/goa by adding easyJSON to app/user_types and app/media_types
#!/bin/bash
# assumes pwd is your root folder
echo "Running goagen to create generated goa code"
goagen app \
-d your/project/import/path/design \
-o .
echo "Running goagen to create generated goa controllers (if necessary)"
goagen controller \
-d your/project/import/path/design \