Skip to content

Instantly share code, notes, and snippets.

View iacoware's full-sized avatar

Massimo Iacolare iacoware

View GitHub Profile
@iacoware
iacoware / GIT_ALIAS.md
Last active September 19, 2019 08:44
Refactoring days

Useful git aliases

Edit config git config --global -e

Commit all
Mac/Linux --> git config --global alias.ca '!git add -A && git commit -avm'  
Windows --> git config --global alias.ca "!git add -A && git commit -avm"

Usage

@iacoware
iacoware / boxstarter.ps1
Last active May 27, 2019 21:30 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com> adjusted a but to suit my needs
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:

Run an app inside docker using only 2 cores (0,1). Mount current directory

docker run --rm -it --cpuset-cpus 0-1 -v $(PWD):/app/ -w /app/ mcr.microsoft.com/dotnet/core/sdk:2.2 dotnet run 1

Run asp.net core inside docker with mounted volume

docker run --rm -it -p 5000:5000 -v ~/my-app/src/app/:/app/ -w /app/ -e ASPNETCORE_URLS=http://+:80 mcr.microsoft.com/dotnet/core/sdk:2.2 dotnet watch run

Attach interactively

docker exec -it /bin/bash

@iacoware
iacoware / description.txt
Last active January 3, 2020 16:25
Birthday greetings kata
### Descrizione del kata
La trovi a questo indirizzo http://matteo.vaccari.name/blog/archives/154
Nel blog post viene descritto soltanto il refactoring da un design "piu' incasinato" ad un design piu' flessibile
Il tuo obiettivo invece e' partire da zero.
### Risorse
https://github.com/cmendible/netDumbster
Questa e' una libreria che permette di scrivere piu' facilmente test che coinvolgono l'invio di una mail.