Skip to content

Instantly share code, notes, and snippets.

View marcio-azevedo's full-sized avatar

Márcio Azevedo marcio-azevedo

View GitHub Profile
@marcio-azevedo
marcio-azevedo / ManagerReadMe.md
Last active September 17, 2020 16:03
Manager ReadMe

Manager ReadMe

Inspired by the Manager ReadMe idea I decided to create my own.

About Me

As an Engineering Manager my primary goal is to support engineering teams improving their processes and practices, enabling value delivery to our customers. I'm a big fan of the idea that teams should be independent value streams so I try to promote:

  • Autonomy
  • Mastery
@marcio-azevedo
marcio-azevedo / 01.Setup-CAKE.md
Last active March 24, 2019 08:30
Setup CAKE (build automation) and some examples.

Setup CAKE

  • Setting up a new project
    • Download build.ps1 bootstrapper script
      • Open PowerShell an run Invoke-WebRequest http://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1
    • Add script tasks.cake to the same location (ex: root folder)
@marcio-azevedo
marcio-azevedo / IntercomExample.cs
Created June 5, 2017 12:24
Intercom usage example
// https://github.com/intercom/intercom-dotnet
//var usersClient = new UsersClient(new Authentication("MyPersonalAccessToken"));
var usersClient = new UsersClient(new Authentication("AppId", "AppKey"));
// Create a user
var user = usersClient.Create(
new User
{
id = "",
@marcio-azevedo
marcio-azevedo / 1.steps-to-install-paket.md
Last active May 18, 2017 09:55
PAKET examples and How To.

Steps to install Paket and convert projects from NuGet to PAKET

  1. mkdir .paket (in root folder)
  2. Download paket.bootstrapper.exe into .paket folder
  3. update .gitignore to exclude paket.exe
# PAKET
paket.exe
  • cd .paket -> run paket.bootstrapper.exe (to download paket.exe)
@marcio-azevedo
marcio-azevedo / 01.Checklist-Setup-FAKE.md
Last active June 28, 2017 12:43
Setup FAKE and script examples.
@marcio-azevedo
marcio-azevedo / ElasticSearchClientExample.cs
Created November 21, 2016 22:41
ElasticSearch example for C#
var client = new ElasticClient();
var searchResponse = client.Search<Tweet>(s => s
.Index("social-*")
.Query(q => q
.Match(m => m
.Field(f => f.Message)
.Query("myProduct")
)
)
.Aggregations(a => a
@marcio-azevedo
marcio-azevedo / elk-docker-cheat-sheet.sh
Last active July 21, 2017 22:29
Docker Cheat Sheet for ElasticSearch, Logstash and Kibana.
# based on http://elk-docker.readthedocs.io/ image
# get elk image - https://hub.docker.com/r/sebp/elk/ - just for the 1st get
# sudo docker pull sebp/elk
# run elk container - just for the 1st container creation
# sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk
# --
# if using elasticsearch official docker image fix issue with elasticsearch container memory problem
@marcio-azevedo
marcio-azevedo / install-docker.sh
Last active December 31, 2016 12:03
Docker Commands Cheat Sheet for Ubuntu Xenial 16.04 (LTS)
# Install Docker on Ubuntu Xenial 16.04 (LTS)
# based on https://docs.docker.com/engine/installation/linux/ubuntulinux/
# Prerequisites
# make sure Kernel version is (at least) 3.10
# $ uname -r
# Update your apt sources
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
@marcio-azevedo
marcio-azevedo / MyRabbitMQBaseModule.fs
Last active May 5, 2016 11:17
fsharp-data-processing-pipeline rabbitmq example.
open System
open System.Collections.Generic
open System.Globalization
open System.Threading
open RabbitMQ.Client
open EasyNetQ
open FSharp.DataProcessingPipelines.Core
open FSharp.DataProcessingPipelines.Core.Messages
open FSharp.DataProcessingPipelines.Core.Pipes
open FSharp.DataProcessingPipelines.Core.Filters