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
| $Url = 'https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe' | |
| $Exe = "net461.exe" | |
| $Dest = "C:\\" + $Exe | |
| $Params = " /q" | |
| $client = new-object System.Net.WebClient | |
| $client.DownloadFile($Url,$Dest) | |
| Invoke-Expression ("cmd.exe /C " + $Dest + $Params) |
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
| $Url = 'https://download.microsoft.com/download/F/9/4/F942F07D-F26F-4F30-B4E3-EBD54FABA377/NDP462-KB3151800-x86-x64-AllOS-ENU.exe' | |
| $Exe = "net462.exe" | |
| $Dest = "C:\\" + $Exe | |
| $Params = " /q" | |
| $client = new-object System.Net.WebClient | |
| $client.DownloadFile($Url,$Dest) | |
| Invoke-Expression ("cmd.exe /C " + $Dest + $Params) |
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
| # source http://blog.kmsigma.com/2016/02/25/removing-default-web-site-application-pool/ | |
| # Check for Admin Access (UAC) | |
| $User = [Security.Principal.WindowsIdentity]::GetCurrent() | |
| $Role = ( New-Object Security.Principal.WindowsPrincipal $user ).IsInRole( [Security.Principal.WindowsBuiltinRole]::Administrator ) | |
| if ( -not $Role ) | |
| { | |
| Write-Warning "To perform some operations you must run an elevated Windows PowerShell console." | |
| } | |
| else | |
| { |
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
| ALTER USER [UserName] WITH LOGIN = [UserLogin]; |
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
| SELECT net_transport | |
| FROM sys.dm_exec_connections | |
| WHERE session_id = @@SPID |
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
| git log --pretty="format: - %s%b **%an**@_%h_" --abbrev-commit master..release/rc-49 --no-merges > release.txt |
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
| select *, Name + ' is running for ' + CONVERT(varchar(10),DATEDIFF(minute,startdate, getutcdate()), 114) + ' minutes on [Advisory_Fact_Test]' from [Advisory_Fact_Test].dbo.JobLog | |
| where stopDate is null and startdate > getutcdate() - 7 | |
| union all | |
| select *, Name + ' is running for ' + CONVERT(varchar(10),DATEDIFF(minute,startdate, getutcdate()), 114) + ' minutes on [AdvisoryFact]' from [AdvisoryFact].dbo.JobLog | |
| where stopDate is null and startdate > getutcdate() - 7 |
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
| <PackageReference Include="(.+?), Version=(.+?),.+ | |
| <HintPath>..\\Advisory_Algorithm\\packages\\(.+?)\.([\d\.]+)\\.+$ --> <PackageReference Include="$1" Version="$2" /> |
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
| minikube start --vm-driver=hyperv --hyperv-virtual-switch=myswitch --v=3 | |
| minikube dashboard |
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
| // npm install http-proxy --save | |
| var http = require('http'), httpProxy = require('http-proxy'); | |
| httpProxy.createProxyServer({target:'http://192.168.11.25:8111'}).listen(8088); |