This file contains 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
<rule name="Force Https" stopProcessing="true"> | |
<match url="health.htm" negate="true" /> | |
<conditions> | |
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /> | |
</rule> |
This file contains 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
declare @hyperthreadingRatio bit | |
declare @logicalCPUs int | |
declare @HTEnabled int | |
declare @physicalCPU int | |
declare @SOCKET int | |
declare @logicalCPUPerNuma int | |
declare @NoOfNUMA int | |
select @logicalCPUs = cpu_count -- [Logical CPU Count] |
This file contains 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
--http://www.sqlskills.com/blogs/paul/how-to-examine-io-subsystem-latencies-from-within-sql-server/ | |
SELECT | |
[ReadLatency] = | |
CASE WHEN [num_of_reads] = 0 | |
THEN 0 ELSE ([io_stall_read_ms] / [num_of_reads]) END, | |
[WriteLatency] = | |
CASE WHEN [num_of_writes] = 0 | |
THEN 0 ELSE ([io_stall_write_ms] / [num_of_writes]) END, | |
[Latency] = | |
CASE WHEN ([num_of_reads] = 0 AND [num_of_writes] = 0) |
This file contains 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
TAKEOWN /F "<foldername>" /R /D N /A | |
Remove folder read-only attribute | |
ATTRIB -R /D /S "<Foldername>" |
This file contains 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
setlocal | |
set "location=d:\" | |
for /F "delims=" %%a in ('dir /s /ad /b "%location%"') do ( | |
echo md %%a >> createDirectorys.bat | |
) |
This file contains 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
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Plus.v1; | |
using Google.Apis.Plus.v1.Data; | |
using Google.Apis.Services; | |
using Google.GData.Client; | |
using Google.GData.Spreadsheets; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography.X509Certificates; |
This file contains 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
EXEC sp_addlinkedserver | |
@server=N'wradminlite', -- Linked Server Display Name | |
@srvproduct=N'SQL Server', -- Default to SQL Server | |
@provider=N'SQLNCLI', -- Use SQLNCLI | |
@datasrc=N''; -- VPC IP of remote server, force TCP mode | |
EXEC sp_addlinkedsrvlogin @rmtsrvname = 'wradminlite' -- Linked Server Display Name | |
, @useself = 'false' -- Do not masquerade | |
-- , @locallogin = '' -- Commented out to force all local users to use linked login | |
, @rmtuser = '' -- Remote user name |
This file contains 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
<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
<add input="{HTTPS}" pattern="off" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" /> | |
</rule> |
This file contains 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
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results | |
[Dd]ebug/ | |
[Rr]elease/ |
This file contains 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
/* Re-sizing TempDB to 15 GB */ | |
USE [master]; | |
GO | |
alter database tempdb modify file (name='tempdev', size = 15GB); | |
GO | |
USE [master]; |
NewerOlder