Install the OpenSSL on Debian based systems
sudo apt-get install openssl| <?php | |
| //ini_set('display_errors', true); | |
| $numerosSorteados = [1,3,5,8,10,11,12,13,14,19,21,22,23,24,25]; | |
| $h = fopen('lotofacil.txt', 'r'); | |
| $acertos = []; | |
| while (!feof ($h)) { | |
| $linha = fgets($h, 4096); | |
| if (trim($linha) === '') { | |
| continue; |
| _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 | |
| })); |
| 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 |
| /** | |
| Para quando houver erro: | |
| Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. | |
| */ | |
| try | |
| { | |
| contexto.SaveChanges(); | |
| } | |
| catch (DbEntityValidationException e) | |
| { |
| 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) |
| 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 ); | |
| } |
| 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", |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using NHibernate; | |
| namespace ConfiguracaoNHibernate | |
| { | |
| public class Configuracao | |
| { |
| 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 |