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
| public interface ISetCookies | |
| { | |
| void SetCookie(HttpContext context); | |
| } |
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
| public void SetCookie(IHttpContextService context) | |
| { | |
| if (context == null) | |
| return; | |
| if (context.User == null) | |
| return; | |
| if (context.User.Identity == null) | |
| return; |
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
| set-location \\\\servername\sharename |
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
| $list = gci C:\Website\isc\* -include "*.aspx" -recurse | select-string -pattern "/user_controls/OldControl.ascx" | |
| $list | foreach { rm $_.Path } |
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
| WriteToFile "C:\Websites\PreExecute\Logs\PreExecuteErrors_" & Year(Now) & Month(Now) & Day(Now) & _ | |
| ".html", " Date/Time: " & Now() & "<br />" & _ | |
| " ASP Code: " & objASPError.ASPCode & "<br />" & _ | |
| "ASP Description: " & objASPError.Description & "<br />" & _ | |
| " Category: " & objASPError.Category & "<br />" & _ | |
| " Column: " & objASPError.Column & "<br />" & _ | |
| " Description: " & objASPError.Description & "<br />" & _ | |
| " File: " & objASPError.File & "<br />" & _ | |
| " Line: " & objASPError.Line & "<br />" & _ | |
| " Number: " & objASPError.Number & "<br />" & _ |
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
| [TestFixture] | |
| public class BasicTests : SeleniumRunner | |
| { | |
| protected override string ProjectName | |
| { | |
| get { return "Selenium.Example.WebSite"; } | |
| } | |
| } |
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
| $e = get-wmiobject -computerName 'SERVER' -query "SELECT * FROM Win32_NTLogEvent WHERE (logfile='application') AND (type='warning')" |
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
| ~/Library/Application Support/Google/Picasa/db3/ |
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
| Unhandled Exception: System.TypeInitializationException: | |
| The type initializer for 'NAnt.Console.ConsoleStub' threw an exception. | |
| System.Security.SecurityException: Request for the permission of type | |
| 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0' |
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
| var lines = new[] | |
| { | |
| "Line A", | |
| "Line B", | |
| "Line C" | |
| }; | |
| var dict = new Dictionary<string, string>(); | |
| for(int i=0; i <= lines.GetUpperBound(0); i++) |