This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc.Filters; | |
using Microsoft.AspNetCore.Mvc; | |
namespace Fibra.GestaoSacado.Api.Attributes | |
{ | |
public class SecureRequestAttribute : ActionFilterAttribute, IActionFilter | |
{ | |
public override void OnActionExecuting(ActionExecutingContext filterContext) | |
{ | |
var req = filterContext.HttpContext.Request; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ReprocessaLinhas(int IdArquivo) | |
{ | |
using (var connection = _context.GetOpenConnection(_configuration.GetConnectionString("SqlServerDb"))) | |
{ | |
var transaction = connection.BeginTransaction(); | |
try | |
{ | |
//ExcluiAprovacaoIdArquivo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intalar o Node | |
nvm node | |
nvm install node //instala ultima versao do node | |
nvm ls-remote //listar versoes instaladas | |
nvm intall 8.10 | |
nvm use 8.10 | |
nvm ls //ver as versoes instaladas | |
npm -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-gerar uma nova chave SSH | |
ssh-keygen | |
ssh-keygen -t rsa -C "exampla@example.com" | |
-Adicione a chave SSH à sua conta GIT | |
cat ~/.ssh/id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker version -exibe a versão do docker | |
docker run Nome_da_imagem - cria um container com a respectiva imagem passada como parâmetro | |
docker ps - lista todos meus containers | |
docker ps -a - lista todos os container que já criei até os parados | |
docker run Ubuntu echo "Ola Mundo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixins | |
mixin input(type, label) | |
.input-container | |
input(type='#{type}' id='#{label}' required) | |
label(for='#{label}')=label | |
.bar | |
mixin button(text) | |
.button-container | |
button | |
span=text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN TRAN | |
update MensagemNotificacao set Descricao = 'FUDEU' | |
ROLLBACK TRAN | |
COMMIT TRAN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-4"> | |
<label for="exampleInputEmail1">Original Amount</label> | |
<div class="input-group"> | |
<div class="input-group-addon">$</div> | |
<input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount"> | |
</div> | |
</div> | |
<div class="col-sm-4"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Scripts.Render("~/bundles/jquery") | |
@Scripts.Render("~/bundles/bootstrap") | |
@Scripts.Render("~/bundles/inputmask") | |
<script type="text/javascript"> | |
var $campoPlaca = $("#Placa"); | |
$campoPlaca.inputmask("mask", { "mask": "AAA-999" }); |