WINDOWS 10 | Recuperare il product key
Aprire una sessione di powershell in modalità amministratore ed eseguire il seguente comando: wmic path SoftwareLicensingService get OA3xOriginalProductKey
GIT | Sostituire url origin in una repository esistente
Aprire un prompt dei comandi nella cartella principale della repository ed eseguire i seguenti comandi: git remote rm origingit remote add origin "url della nuova repository" Eseguire un fetch su…
SWAGGER-UI | Remove schemas
app .UseSwaggerUI(opts => { opts.DefaultModelsExpandDepth(-1); });
WINDOWS 10 | Fix connessioni VPN su NAT
Aprire un prompt dei comandi con diritti di amministratore ed eseguire il seguente comando: REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f Una volta confermato, riavviare il pc
VMWARE Workstation | Disabilitare i file .VMEM
Editare il file C:\ProgramData\VMware\VMware Workstation\settings.ini ed aggiungere le seguenti righe: prefvmx.minVmMemPct = "100"MemTrimRate = "0"mainMem.useNamedFile = "FALSE"sched.mem.pshare.enable = "FALSE"prefvmx.useRecommendedLockedMemSize = "TRUE" Chiudere e riaprire VMWare Workstation prima di avviare la…
https://github.com/franksorro/DotNetCoreWithDapper
A starter .NET Core project with Dapper & MySQL and some preset features: Controller with authorization NLog AutoMapper Swagger User secrets AppSettings info in object class MemCached Sentry AWS S3…
WINDOWS SERVER | Installare memcached
Eseguire il download di memcached da questo indirizzo:http://downloads.northscale.com/memcached-win64-1.4.4-14.zip Scompattare il contenuto nella cartella c:\memcached Aprire un prompt dei comandi con privilegi di amministratore ed eseguire i seguenti comandi: memcached -d…
WINDOWS 10 | Passare da Windows Home a Windows Pro
Questa procedura permette di passare da una versione Home di Windows 10 ad una versione Pro. E’ necessario avere un Product Key valido di Windows 10 Pro: Impostazioni -> Sistema…
ASP.NET | Rimuovere il file PDB durante la pubblicazione
Editare il file del progetto ed aggiungere le seguenti informazioni: <PropertyGroup> <DebugType Condition=" '$(Configuration)' == 'Release' ">None</DebugType> </PropertyGroup>