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
byte[] a = Enumerable.Repeat((byte)10, 100).ToArray(); |
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
dnscmd /config /EnableVersionQuery 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
DateTimeFormatInfo dateTimeFormatInfo = new DateTimeFormatInfo(); | |
var months = dateTimeFormatInfo.MonthNames.ToList(); |
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
var numbers = Enumerable.Range(0, 100).ToList(); |
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
{ | |
... | |
ServicePointManager.ServerCertificateValidationCallback = | |
delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { | |
return true; | |
}; | |
smtpclient.Send(); | |
... | |
} |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"> | |
<Request> | |
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema> | |
<EMailAddress>[email protected]</EMailAddress> | |
</Request> | |
</Autodiscover> |
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
<!-- RESPONSE FROM THE SERVER --> | |
<?xml version="1.0" encoding="utf-8" ?> | |
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> | |
<!-- Response: Required | |
This tag serves as an indication that the retrieved XML is an Autodiscovery Response | |
--> | |
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a"> | |
<!-- User: Optional | |
This tag gives user-specific information. Autodiscover must be UTF-8 encoded. | |
--> |
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
<!-- EN-US --> | |
<errorFilter> | |
<test> | |
<or> | |
<equal binding="HttpStatusCode" value="404" type="Int32" /> | |
<regex binding="Context.Request.ServerVariables['URL']" pattern="/favicon\.ico(\z|\?)" /> | |
</or> | |
<or> | |
<and> |
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
-- Create a db_executor role | |
CREATE ROLE [db_executor] AUTHORIZATION [dbo]; | |
-- Grant execute rights to the new role | |
GRANT EXECUTE TO [db_executor]; |
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
-- Create a db_viewdefinition role | |
CREATE ROLE [db_viewdefinition] AUTHORIZATION [dbo]; | |
-- Grant view definition rights to the new role | |
GRANT VIEW DEFINITION TO [db_viewdefinition]; |
OlderNewer