Skip to content

Instantly share code, notes, and snippets.

View otaviolarrosa's full-sized avatar
🏠
Working from home

Otávio Larrosa otaviolarrosa

🏠
Working from home
View GitHub Profile
alias difftool='git difftool'
alias mergetool='git mergetool'
alias cob='git checkout -b'
alias p='git pull'
alias co='git checkout'
alias st='git status -s'
alias cmm='git commit -m'
alias a='git add .'
alias cpe='git cherry-pick -e'
alias cpn='git cherry-pick -n'
using Application.UseCases.User.CreateUser.Input;
using Application.UseCases.User.RequestCreateUser;
using Microsoft.AspNetCore.Mvc;
using System.Net;
namespace Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class UserController : ControllerBase
using Application.Extensions;
using Consumers;
using Infrastructure.Extensions;
using Producers;
using Serilog;
using StreamNet;
var builder = WebApplication.CreateBuilder(args);
package main
import "fmt"
type Grafo struct {
vertices []Vertice
}
type Vertice struct {
color string
@otaviolarrosa
otaviolarrosa / UnityContainer
Created June 20, 2019 18:08
UnityContainer implemented in Vb.Net
Imports Unity
Module Module1
Public Interface IMyFirstInterface
Sub Test()
End Interface
Public Class MyFirstClass
Implements IMyFirstInterface
Private ReadOnly secondInterface As IMySecondInterface
mkdir MySqlSample
cd MySqlSample
dotnet new sln
mkdir src
cd src/
mkdir MySqlSample.Api
cd MySqlSample.Api/
dotnet new webapi
cd ..
@otaviolarrosa
otaviolarrosa / .gitconfig
Created August 22, 2018 13:29
My Personal Git files - .gitconfig
# This is Git's per-user configuration file.
[alias]
st = status -s
co = checkout
p = pull
po = push origin
cob = checkout -b
rd = rebase develop
b = branch
l = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
@otaviolarrosa
otaviolarrosa / .bash_profile
Created August 22, 2018 13:27
My Personal Git files - .bash_profile
alias difftool='git difftool'
alias mergetool='git mergetool'
alias cob='git checkout -b'
alias p='git pull'
alias co='git checkout'
alias st='git status -s'
alias cmm='git commit -m'
alias a='git add .'
alias cpe='git cherry-pick -e'
alias cpn='git cherry-pick -n'
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace JwtSample.Controllers
{
[Route("api/[controller]")]
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using JwtSample.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
namespace JwtSample.Controllers