Graph Database on the Cloud: Graphene DB
https://www.graphenedb.com
segunda-feira, 16 de abril de 2018
terça-feira, 3 de abril de 2018
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
I got this error when
sudo apt-get update
Reading package lists... Done
W: GPG error: https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Use:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo apt-get update
Reading package lists... Done
W: GPG error: https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Use:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
segunda-feira, 26 de março de 2018
Create your own Certificate for UWP App
Save this to a .ps1 file:
# https://blogs.infinitesquare.com/posts/windows/creer-un-certificat-auto-signe-pour-vos-packages-windows-uwp-de-longue-duree
# https://docs.microsoft.com/pt-br/windows/uwp/packaging/create-certificate-package-signing
$pass = Read-Host 'Password?' -AsSecureString
$duree = Read-Host 'Years to expire?'
$subject = Read-Host 'Certificate Subject?'
# Où se trouve t'on ?
$invocation = (Get-Variable MyInvocation).Value
$directorypath = Split-Path $invocation.MyCommand.Path
# on se place au niveau machine
Set-Location Cert:\LocalMachine\My
#un certificat du même sujet existe ?
$thumbprint =Get-ChildItem | Where-Object {$_.subject -match $subject} | Select-Object -first 1 | select -ExpandProperty Thumbprint
if($thumbprint -ne $null)
{
Write-Host "deleting old one "$thumbprint;
Remove-Item -Path $thumbprint;
}
# création d'un nouveau certificat
New-SelfSignedCertificate -NotAfter (Get-Date).AddYears(42) -TextExtension ('2.5.29.37={text}1.3.6.1.5.5.7.3.3','2.5.29.19={text}Subject Type:End Entity') -Type Custom -Subject $subject -KeyUsage DigitalSignature -FriendlyName "Certificat de signature de code" -CertStoreLocation "Cert:\LocalMachine\My"
# récupération du thumbprint du certifcat créé
$thumbprint = Get-ChildItem | Where-Object {$_.subject -match $subject} | Select-Object -first 1 | select -ExpandProperty Thumbprint;
#Export du PFX
Export-PfxCertificate -cert $thumbprint -Password $pass -FilePath $directorypath\MON_CERTIFICAT.pfx
Set-Location C:\temp\UWP
# https://blogs.infinitesquare.com/posts/windows/creer-un-certificat-auto-signe-pour-vos-packages-windows-uwp-de-longue-duree
# https://docs.microsoft.com/pt-br/windows/uwp/packaging/create-certificate-package-signing
$pass = Read-Host 'Password?' -AsSecureString
$duree = Read-Host 'Years to expire?'
$subject = Read-Host 'Certificate Subject?'
# Où se trouve t'on ?
$invocation = (Get-Variable MyInvocation).Value
$directorypath = Split-Path $invocation.MyCommand.Path
# on se place au niveau machine
Set-Location Cert:\LocalMachine\My
#un certificat du même sujet existe ?
$thumbprint =Get-ChildItem | Where-Object {$_.subject -match $subject} | Select-Object -first 1 | select -ExpandProperty Thumbprint
if($thumbprint -ne $null)
{
Write-Host "deleting old one "$thumbprint;
Remove-Item -Path $thumbprint;
}
# création d'un nouveau certificat
New-SelfSignedCertificate -NotAfter (Get-Date).AddYears(42) -TextExtension ('2.5.29.37={text}1.3.6.1.5.5.7.3.3','2.5.29.19={text}Subject Type:End Entity') -Type Custom -Subject $subject -KeyUsage DigitalSignature -FriendlyName "Certificat de signature de code" -CertStoreLocation "Cert:\LocalMachine\My"
# récupération du thumbprint du certifcat créé
$thumbprint = Get-ChildItem | Where-Object {$_.subject -match $subject} | Select-Object -first 1 | select -ExpandProperty Thumbprint;
#Export du PFX
Export-PfxCertificate -cert $thumbprint -Password $pass -FilePath $directorypath\MON_CERTIFICAT.pfx
Set-Location C:\temp\UWP
sexta-feira, 16 de março de 2018
Convert a .csproj from .Net Class Library to .Net Standard 2.0
<project sdk="Microsoft.NET.Sdk">
<propertygroup>
<targetframework>netstandard2.0</targetframework>
</propertygroup>
</project>
quarta-feira, 14 de março de 2018
Regex Credit Card Brand ?
public function getSupportedBrands()
{
return array(
static::BRAND_VISA => '/^4\d{12}(\d{3})?$/',
static::BRAND_MASTERCARD => '/^(5[1-5]\d{4}|677189)\d{10}$/',
static::BRAND_DISCOVER => '/^(6011|65\d{2}|64[4-9]\d)\d{12}|(62\d{14})$/',
static::BRAND_AMEX => '/^3[47]\d{13}$/',
static::BRAND_DINERS_CLUB => '/^3(0[0-5]|[68]\d)\d{11}$/',
static::BRAND_JCB => '/^35(28|29|[3-8]\d)\d{12}$/',
static::BRAND_SWITCH => '/^6759\d{12}(\d{2,3})?$/',
static::BRAND_SOLO => '/^6767\d{12}(\d{2,3})?$/',
static::BRAND_DANKORT => '/^5019\d{12}$/',
static::BRAND_MAESTRO => '/^(5[06-8]|6\d)\d{10,17}$/',
static::BRAND_FORBRUGSFORENINGEN => '/^600722\d{10}$/',
static::BRAND_LASER => '/^(6304|6706|6709|6771(?!89))\d{8}(\d{4}|\d{6,7})?$/',
);
}
quinta-feira, 11 de janeiro de 2018
How to allow popup in Microsoft Edge Web Browser
RegEdit, go to:
Computer\HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\New Windows\Allow
Add new Binary Value
Type:
REG_BINARY
Name:
*.yoursite.com
Data:
00 00
Source: https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-msedge/pop-up-exceptions-in-edge/e5af3fd9-22a6-459f-ab0f-28c2f46c2dae
Computer\HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\New Windows\Allow
Add new Binary Value
Type:
REG_BINARY
Name:
*.yoursite.com
Data:
00 00
Source: https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-msedge/pop-up-exceptions-in-edge/e5af3fd9-22a6-459f-ab0f-28c2f46c2dae
quarta-feira, 8 de novembro de 2017
Windows 10 Media Creation Tool error: 0x80072F76-0x20017
Windows 10 Media Creation Tool error: 0x80072F76-0x20017
Esse erro se da pois você usou o media creation tools anteriormente
Oi é muito fácil resolver isso
1-) feche o programa
2-) apagar as 2 pastas que estão no disco C
$Windows.~WS
$WINDOWS.~BT
agora pode usar o programa
Assinar:
Postagens
(
Atom
)