Install the OpenSSL on Debian based systems
sudo apt-get install openssl
... | |
RUN apt update && apt-get install -y libleptonica-dev | |
RUN ls -la /usr/lib/x86_64-linux-gnu/ | |
WORKDIR /app | |
RUN mkdir tmp | |
RUN apt-get install -y automake libtool pkg-config | |
RUN wget -q https://github.com/tesseract-ocr/tesseract/archive/5.2.0.tar.gz \ | |
&& tar -zxvf 5.2.0.tar.gz -C /app/tmp \ |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
#resolve problema de biblioteca responsavel por listar as fonts instaladas | |
RUN apt-get update | |
RUN apt-get install -y apt-utils | |
RUN apt-get install -y libgdiplus | |
RUN apt-get install -y libc6-dev |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NHibernate; | |
namespace ConfiguracaoNHibernate | |
{ | |
public class Configuracao | |
{ |
var FacUtils = FacUtils || {}; | |
FacUtils.File = FacUtils.File || {}; | |
FacUtils.File.MimeTypes = { | |
Dicionario : { | |
"3dm": "x-world/x-3dmf", | |
"3dmf": "x-world/x-3dmf", | |
"a": "application/octet-stream", | |
"aab": "application/x-authorware-bin", | |
"aam": "application/x-authorware-map", |
var input = document.getElementById("files"); | |
var reader = new FileReader(); | |
reader.readAsBinaryString(input.files[0]); | |
reader.onloadend = function(){ | |
var count = reader.result.match(/\/Type[\s]*\/Page[^s]/g).length; | |
console.log('Number of Pages:',count ); | |
} |
public class LigarDesligarVM | |
{ | |
/* informações de token e o estado correto devem ser tratados antes*/ | |
public void Ligar(TokenCredentials credentialstring, string subscriptionId, string resourceGroup, string nomeDaVM) | |
{ | |
var computeManagementClient = new ComputeManagementClient(credential) { SubscriptionId = subscriptionId }; | |
computeManagementClient.VirtualMachines.Start(resourceGroup, nomeDaVM); | |
} | |
public void Desligar(TokenCredentials credentialstring, subscriptionId, string resourceGroup, string nomeDaVM) |
/** | |
Para quando houver erro: | |
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. | |
*/ | |
try | |
{ | |
contexto.SaveChanges(); | |
} | |
catch (DbEntityValidationException e) | |
{ |
Efetuar download do openssl | |
http://slproweb.com/products/Win32OpenSSL.html | |
================================ | |
Comando 1: | |
genrsa -des3 -out fabiano.key 4096 | |
Comando 2: | |
req -new -x509 -days 3650 -key fabiano.key -out fabiano.crt |
_contexto.Tramitacao | |
.Where(x => entrada.Contains(x.IdDocumento)) | |
.GroupBy(x => new { x.IdDocumento }) | |
.Select(g => g.OrderBy(e=> e.IdDocumento).ThenByDescending(e => e.Data).Take(1)) | |
.SelectMany(e => e.Select(x => new TramitacaoDocumentoModel | |
{ | |
IdDocumento = x.IdDocumento, | |
IdStatus = x.IdStatus, | |
DataTramitacao = x.Data | |
})); |