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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\jpegfile\shell\open\command] | |
| @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ | |
| 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ | |
| 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ | |
| 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ | |
| 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ | |
| 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ | |
| 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ |
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
| // Startup.cs | |
| using Microsoft.IdentityModel.Tokens; | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddAuthentication().AddOpenIdConnect(c => | |
| { | |
| c.Authority = "https://login.microsoftonline.com/common"; | |
| c.ClientId = "<insert-registered-guid>"; | |
| c.TokenValidationParameters = new TokenValidationParameters |
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
| <!-- 50 MB limit --> | |
| <system.web> | |
| <httpRuntime maxRequestLength="51200" /> | |
| </system.web> | |
| <system.webServer> | |
| <security> | |
| <requestFiltering> | |
| <requestLimits maxAllowedContentLength="52428800" /> | |
| </requestFiltering> | |
| </security> |
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
| <!-- | |
| interface Organization { | |
| name: string; | |
| url: string; | |
| children: Organization[]; | |
| } | |
| org: Organization[]; | |
| --> | |
| <div class="invid-tree"> | |
| <ng-template #recursiveList let-list> |
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 ls-files | % { "$(git log -1 --format="%ai" -- $_) $_" } |
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
| using System; | |
| using System.Windows; | |
| using System.Windows.Media; | |
| using System.Windows.Media.Animation; | |
| public class AnimationHelpers | |
| { | |
| public static void Fade(UIElement incoming, UIElement outgoing, int seconds) | |
| { | |
| Storyboard story = new Storyboard(); |
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
| $cfg = Get-SPServiceHostConfig | |
| $cfg.Provision() | |
| $services = Get-SPServiceApplication | |
| foreach ($srv in $services) { | |
| $srv.Provision() | |
| Write-Host $srv.Name | |
| } |
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
| function parseCSV(src, sep) { | |
| if (!sep) { | |
| sep = "\t"; | |
| } | |
| var data = []; | |
| var isQuoteEscaped = false; | |
| var row = []; | |
| var value = ""; | |
| for (var i = 0; i < src.length; i++) { | |
| var chr = src[i]; |
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
| CREATE PROC SearchAllTables | |
| ( | |
| @SearchStr nvarchar(100) | |
| ) | |
| AS | |
| BEGIN | |
| CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630)) | |
| SET NOCOUNT ON |